Improved timing.

This commit is contained in:
Martin Edenhofer 2015-03-05 11:40:36 +01:00
parent 1551400230
commit cf16efcc17
2 changed files with 15 additions and 4 deletions

View file

@ -269,10 +269,12 @@ class PreferencesTest < TestCase
:css => 'body', :css => 'body',
:value => 'Sprache', :value => 'Sprache',
) )
sleep 4 sleep 6
# check if language is still used after reload # check if language is still used after reload
reload() reload()
sleep 2
watch_for( watch_for(
:css => 'body', :css => 'body',
:value => 'Sprache', :value => 'Sprache',

View file

@ -26,17 +26,23 @@ class SettingTest < TestCase
click( :css => 'a[href="#manage"]' ) click( :css => 'a[href="#manage"]' )
click( :css => 'a[href="#settings/security"]' ) click( :css => 'a[href="#settings/security"]' )
click( :css => 'a[href="#third_party_auth"]' ) click( :css => 'a[href="#third_party_auth"]' )
sleep 2
# set yes # set yes
select( select(
:css => '#auth_facebook select[name="{boolean}auth_facebook"]', :css => '#auth_facebook select[name="{boolean}auth_facebook"]',
:value => 'yes', :value => 'yes',
)
match(
:css => '#auth_facebook select[name="{boolean}auth_facebook"]',
:value => 'yes',
) )
click( :css => '#auth_facebook button[type=submit]' ) click( :css => '#auth_facebook button[type=submit]' )
watch_for( watch_for(
:css => '#notify', :css => '#notify',
:value => 'update successful', :value => 'update successful',
) )
sleep 4
match( match(
:css => '#auth_facebook select[name="{boolean}auth_facebook"]', :css => '#auth_facebook select[name="{boolean}auth_facebook"]',
:value => 'yes', :value => 'yes',
@ -56,6 +62,7 @@ class SettingTest < TestCase
:css => '#notify', :css => '#notify',
:value => 'update successful', :value => 'update successful',
) )
sleep 4
match( match(
:css => '#auth_facebook select[name="{boolean}auth_facebook"]', :css => '#auth_facebook select[name="{boolean}auth_facebook"]',
:value => 'no', :value => 'no',
@ -79,6 +86,7 @@ class SettingTest < TestCase
:css => '#notify', :css => '#notify',
:value => 'update successful', :value => 'update successful',
) )
sleep 4
match( match(
:css => '#auth_facebook_credentials input[name=app_id]', :css => '#auth_facebook_credentials input[name=app_id]',
:value => 'id_test1234äöüß', :value => 'id_test1234äöüß',
@ -102,6 +110,7 @@ class SettingTest < TestCase
:css => '#notify', :css => '#notify',
:value => 'update successful', :value => 'update successful',
) )
sleep 4
match( match(
:css => '#auth_facebook_credentials input[name=app_id]', :css => '#auth_facebook_credentials input[name=app_id]',
:value => '---', :value => '---',