Commit 344dd3ab authored by Rémy Coutable's avatar Rémy Coutable

[QA] Fix Geo QA failure

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent e923fffe
...@@ -4,6 +4,10 @@ module QA ...@@ -4,6 +4,10 @@ module QA
# #
module EE module EE
module Page module Page
module Main
autoload :Banner, 'qa/ee/page/main/banner'
end
module Menu module Menu
autoload :Admin, 'qa/ee/page/menu/admin' autoload :Admin, 'qa/ee/page/menu/admin'
end end
......
module QA
module EE
module Page
module Main
class Banner < QA::Page::Base
view 'ee/app/helpers/ee/application_helper.rb' do
element :read_only_message, 'You are on a secondary, <b>read-only</b> Geo node.'
end
def has_secondary_read_only_banner?
page.has_text?('You are on a secondary, read-only Geo node.')
end
end
end
end
end
end
...@@ -25,7 +25,11 @@ module QA ...@@ -25,7 +25,11 @@ module QA
authorize! if needs_authorization? authorize! if needs_authorization?
end end
expect(page).to have_content 'You are on a secondary (read-only) Geo node' EE::Page::Main::Banner.perform do |banner|
expect(banner).to have_secondary_read_only_banner
end
expect(page).to have_content 'You are on a secondary, read-only Geo node'
Page::Menu::Main.perform do |menu| Page::Menu::Main.perform do |menu|
menu.go_to_projects menu.go_to_projects
......
...@@ -44,7 +44,9 @@ module QA ...@@ -44,7 +44,9 @@ module QA
authorize! if needs_authorization? authorize! if needs_authorization?
end end
expect(page).to have_content 'You are on a secondary (read-only) Geo node' EE::Page::Main::Banner.perform do |banner|
expect(banner).to have_secondary_read_only_banner
end
Page::Menu::Main.perform do |menu| Page::Menu::Main.perform do |menu|
menu.go_to_projects menu.go_to_projects
......
...@@ -24,7 +24,9 @@ module QA ...@@ -24,7 +24,9 @@ module QA
authorize! if needs_authorization? authorize! if needs_authorization?
end end
expect(page).to have_content 'You are on a secondary (read-only) Geo node' EE::Page::Main::Banner.perform do |banner|
expect(banner).to have_secondary_read_only_banner
end
Page::Menu::Main.perform do |menu| Page::Menu::Main.perform do |menu|
menu.go_to_projects menu.go_to_projects
......
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