Commit ae09f8a7 authored by Filipe Freire's avatar Filipe Freire

gitlab-qa !155 push creates event on activity page

parent 16e89580
module QA
module Page
module Activity
class Activity < Page::Base
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#155
#
view 'app/views/projects/activity.html.haml'
def go_to_push_events
click_button 'Push events'
end
end
end
end
end
module QA
feature 'activity page', :core do
scenario 'push creates an event in the activity page' do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials }
Factory::Resource::Project.fabricate! do |project|
project.name = 'awesome-project'
project.description = 'create awesome project test'
end
Factory::Repository::Push.fabricate! do |push|
push.file_name = 'README.md'
push.file_content = '# This is a test project'
push.commit_message = 'Add README.md'
end
Page::Activity::Activity.act { go_to_push_events }
expect(page).to have_content('Add README.md')
expect(page).to have_content('pushed to branch master')
end
end
end
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