From 3a6ebc253b0ffb1ce929cf11d5e18bbfd8a05011 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 17 Aug 2016 15:49:26 +0200 Subject: [PATCH] Fixed ff - timing/event issue on unfocused windows. --- test/browser/maintenance_test.rb | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) 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