blob: 8934a61b76b331d330379c6ddd5c1870f3a115be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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::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::Project::Sidebar.act { go_to_activity }
Page::Project::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
|