Commit d0a4ab21 authored by Filipe Freire's avatar Filipe Freire

improvements after CR

parent 669c34db
module QA
module Page
module Activity
module Project
class Activity < Page::Base
view 'app/views/projects/activity.html.haml' do
view 'app/views/shared/_event_filter.html.haml' do
element :push_events_button, 'Push events'
end
def go_to_push_events
click_button :push_events_button
click_link :push_events_button
end
def self.path
'/activity'
end
end
end
......
......@@ -4,18 +4,13 @@ module QA
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 }
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')
......
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