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
module Project
autoload :New, 'qa/page/project/new'
autoload :Show, 'qa/page/project/show'
autoload :Sidebar, 'qa/page/project/sidebar'
autoload :Activity, 'qa/page/project/activity'
module Settings
autoload :Common, 'qa/page/project/settings/common'
......
......@@ -2,16 +2,15 @@ module QA
module Page
module Project
class Activity < Page::Base
view 'app/views/shared/_event_filter.html.haml' do
element :push_events_button, 'Push events'
end
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#155
#
view 'app/views/shared/_event_filter.html.haml'
def go_to_push_events
click_link :push_events_button
end
def self.path
'/activity'
click_on 'Push events'
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
push.commit_message = 'Add README.md'
end
Page::Project::Sidebar.act { go_to_activity }
Page::Project::Activity.act { go_to_push_events }
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