Improved timing.
This commit is contained in:
parent
1551400230
commit
cf16efcc17
2 changed files with 15 additions and 4 deletions
|
@ -269,10 +269,12 @@ class PreferencesTest < TestCase
|
|||
:css => 'body',
|
||||
:value => 'Sprache',
|
||||
)
|
||||
sleep 4
|
||||
sleep 6
|
||||
|
||||
# check if language is still used after reload
|
||||
reload()
|
||||
sleep 2
|
||||
|
||||
watch_for(
|
||||
:css => 'body',
|
||||
:value => 'Sprache',
|
||||
|
|
|
@ -26,17 +26,23 @@ class SettingTest < TestCase
|
|||
click( :css => 'a[href="#manage"]' )
|
||||
click( :css => 'a[href="#settings/security"]' )
|
||||
click( :css => 'a[href="#third_party_auth"]' )
|
||||
sleep 2
|
||||
|
||||
# set yes
|
||||
select(
|
||||
:css => '#auth_facebook select[name="{boolean}auth_facebook"]',
|
||||
:value => 'yes',
|
||||
:css => '#auth_facebook select[name="{boolean}auth_facebook"]',
|
||||
:value => 'yes',
|
||||
)
|
||||
match(
|
||||
:css => '#auth_facebook select[name="{boolean}auth_facebook"]',
|
||||
:value => 'yes',
|
||||
)
|
||||
click( :css => '#auth_facebook button[type=submit]' )
|
||||
watch_for(
|
||||
:css => '#notify',
|
||||
:value => 'update successful',
|
||||
)
|
||||
sleep 4
|
||||
match(
|
||||
:css => '#auth_facebook select[name="{boolean}auth_facebook"]',
|
||||
:value => 'yes',
|
||||
|
@ -56,6 +62,7 @@ class SettingTest < TestCase
|
|||
:css => '#notify',
|
||||
:value => 'update successful',
|
||||
)
|
||||
sleep 4
|
||||
match(
|
||||
:css => '#auth_facebook select[name="{boolean}auth_facebook"]',
|
||||
:value => 'no',
|
||||
|
@ -79,6 +86,7 @@ class SettingTest < TestCase
|
|||
:css => '#notify',
|
||||
:value => 'update successful',
|
||||
)
|
||||
sleep 4
|
||||
match(
|
||||
:css => '#auth_facebook_credentials input[name=app_id]',
|
||||
:value => 'id_test1234äöüß',
|
||||
|
@ -102,6 +110,7 @@ class SettingTest < TestCase
|
|||
:css => '#notify',
|
||||
:value => 'update successful',
|
||||
)
|
||||
sleep 4
|
||||
match(
|
||||
:css => '#auth_facebook_credentials input[name=app_id]',
|
||||
:value => '---',
|
||||
|
|
Loading…
Reference in a new issue