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