Commit a1a5d142 authored by Filipe Freire's avatar Filipe Freire

improvement after CR

- test reaches Activity page
- the actual git push seems to be failing
- had problems with defining selectors
parent d0a4ab21
...@@ -100,6 +100,8 @@ module QA ...@@ -100,6 +100,8 @@ module QA
module Project module Project
autoload :New, 'qa/page/project/new' autoload :New, 'qa/page/project/new'
autoload :Show, 'qa/page/project/show' autoload :Show, 'qa/page/project/show'
autoload :Sidebar, 'qa/page/project/sidebar'
autoload :Activity, 'qa/page/project/activity'
module Settings module Settings
autoload :Common, 'qa/page/project/settings/common' autoload :Common, 'qa/page/project/settings/common'
......
...@@ -2,16 +2,15 @@ module QA ...@@ -2,16 +2,15 @@ module QA
module Page module Page
module Project module Project
class Activity < Page::Base class Activity < Page::Base
view 'app/views/shared/_event_filter.html.haml' do ##
element :push_events_button, 'Push events' # TODO, define all selectors required by this page object
end #
# See gitlab-org/gitlab-qa#155
#
view 'app/views/shared/_event_filter.html.haml'
def go_to_push_events def go_to_push_events
click_link :push_events_button click_on 'Push events'
end
def self.path
'/activity'
end end
end end
end end
......
module QA
module Page
module Project
class Sidebar < Page::Base
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#155
#
view 'app/views/layouts/nav/sidebar/_project.html.haml'
def go_to_activity
click_on class: 'shortcuts-project-activity'
end
end
end
end
end
...@@ -10,6 +10,8 @@ module QA ...@@ -10,6 +10,8 @@ module QA
push.commit_message = 'Add README.md' push.commit_message = 'Add README.md'
end end
Page::Project::Sidebar.act { go_to_activity }
Page::Project::Activity.act { go_to_push_events } Page::Project::Activity.act { go_to_push_events }
expect(page).to have_content('Add README.md') expect(page).to have_content('Add README.md')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment