Commit 91a206c2 authored by Jennie Louie's avatar Jennie Louie

Use breadcrumb instead of banner for assertion

parent 7b7a6515
......@@ -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