Commit bdefb879 authored by Gabriel Mazetto's avatar Gabriel Mazetto

Move go_to_settings to Menu and change order in Push factory fabrication

parent 8dd25bc5
...@@ -14,6 +14,12 @@ module QA ...@@ -14,6 +14,12 @@ module QA
end end
end end
def go_to_settings
page.within('.sidebar-top-level-items') do
click_on 'Settings'
end
end
private private
def hover_setting def hover_setting
......
...@@ -34,12 +34,6 @@ module QA ...@@ -34,12 +34,6 @@ module QA
def wait_for_push def wait_for_push
sleep 5 sleep 5
end end
def go_to_settings
page.within('.sidebar-top-level-items') do
click_on 'Settings'
end
end
end end
end end
end end
......
...@@ -14,10 +14,10 @@ module QA ...@@ -14,10 +14,10 @@ module QA
expect(geo_project_name).to include 'geo-before-rename' expect(geo_project_name).to include 'geo-before-rename'
Factory::Repository::Push.fabricate! do |push| Factory::Repository::Push.fabricate! do |push|
push.project = project
push.file_name = 'README.md' push.file_name = 'README.md'
push.file_content = '# This is Geo project!' push.file_content = '# This is Geo project!'
push.commit_message = 'Add README.md' push.commit_message = 'Add README.md'
push.project = project
end end
# check it exists on the other machine # check it exists on the other machine
...@@ -53,9 +53,7 @@ module QA ...@@ -53,9 +53,7 @@ module QA
dashboard.go_to_project(geo_project_name) dashboard.go_to_project(geo_project_name)
end end
Page::Project::Show.perform do |page| Page::Menu::Side.act { go_to_settings }
page.go_to_settings
end
geo_project_newname = "geo-after-rename-#{SecureRandom.hex(8)}" geo_project_newname = "geo-after-rename-#{SecureRandom.hex(8)}"
Page::Project::Settings::Main.perform do |page| Page::Project::Settings::Main.perform do |page|
......
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