Commit d0a4ab21 authored by Filipe Freire's avatar Filipe Freire

improvements after CR

parent 669c34db
module QA module QA
module Page module Page
module Activity module Project
class Activity < Page::Base 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' element :push_events_button, 'Push events'
end end
def go_to_push_events def go_to_push_events
click_button :push_events_button click_link :push_events_button
end
def self.path
'/activity'
end end
end end
end end
......
...@@ -4,18 +4,13 @@ module QA ...@@ -4,18 +4,13 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials } 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| Factory::Repository::Push.fabricate! do |push|
push.file_name = 'README.md' push.file_name = 'README.md'
push.file_content = '# This is a test project' push.file_content = '# This is a test project'
push.commit_message = 'Add README.md' push.commit_message = 'Add README.md'
end 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('Add README.md')
expect(page).to have_content('pushed to branch master') 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