Fixed ff - timing/event issue on unfocused windows.

This commit is contained in:
Martin Edenhofer 2016-08-17 15:49:26 +02:00
parent 902d9a0151
commit 3a6ebc253b

View file

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