diff --git a/test/browser/maintenance_test.rb b/test/browser/maintenance_test.rb index 4395d6c7c..5e080ab19 100644 --- a/test/browser/maintenance_test.rb +++ b/test/browser/maintenance_test.rb @@ -181,11 +181,6 @@ class MaintenanceTest < TestCase url: browser_url, ) - browser2 = browser_instance - location( - browser: browser2, - url: browser_url, - ) click( browser: browser1, css: 'a[href="#manage"]', @@ -195,11 +190,6 @@ class MaintenanceTest < TestCase css: 'a[href="#system/maintenance"]', ) - exists_not( - browser: browser2, - css: '.js-maintenanceLogin', - ) - string = rand(99_999_999_999_999_999).to_s message = "test #{string}" set( @@ -212,7 +202,16 @@ class MaintenanceTest < TestCase css: '#global-search', ) - sleep 3 + browser2 = browser_instance + location( + browser: browser2, + url: browser_url, + ) + exists_not( + browser: browser2, + css: '.js-maintenanceLogin', + ) + switch( browser: browser1, css: '#content .js-loginSetting', @@ -235,7 +234,6 @@ class MaintenanceTest < TestCase browser: browser2, css: '.js-maintenanceLogin', ) - end def test_mode