@@ -13,12 +13,11 @@ RSpec.describe 'Geo read-only message', :geo do
...
@@ -13,12 +13,11 @@ RSpec.describe 'Geo read-only message', :geo do
sign_in(user)
sign_in(user)
end
end
it'shows read-only banner when on a Geo secondary'do
context'when on a Geo secondary'do
stub_current_geo_node(secondary)
beforedo
stub_current_geo_node(secondary)
end
visitroot_dashboard_path
it_behaves_like'Read-only instance',/You are on a secondary, read\-only Geo node\. If you want to make changes, you must visit the primary site.*Go to the primary site/
expect(page).tohave_content('You are on a secondary, read-only Geo node. If you want to make changes, you must visit the primary site.')
expect(page).tohave_content('Go to the primary site')