Commit 79fd8158 authored by Dan Davison's avatar Dan Davison

Merge branch 'jsl-fix-geo-rename-spec' into 'master'

Geo spec: use breadcrumb to check name change

Closes #247128

See merge request gitlab-org/gitlab!42272
parents 37c013d3 91a206c2
......@@ -8,6 +8,7 @@ module QA
include QA::Page::Settings::Common
include Component::Select2
include SubMenus::Project
include Component::Breadcrumbs
view 'app/views/projects/edit.html.haml' do
element :advanced_settings
......
......@@ -36,10 +36,10 @@ module QA
@geo_project_renamed = "geo-after-rename-#{SecureRandom.hex(8)}"
Page::Project::Settings::Main.perform do |settings|
settings.rename_project_to(@geo_project_renamed)
expect(page).to have_content "Project '#{@geo_project_renamed}' was successfully updated."
expect(settings).to have_breadcrumb(@geo_project_renamed)
settings.expand_advanced_settings do |page|
page.update_project_path_to(@geo_project_renamed)
settings.expand_advanced_settings do |advanced_settings|
advanced_settings.update_project_path_to(@geo_project_renamed)
end
end
end
......
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