Improved error handling.
This commit is contained in:
parent
747e18a200
commit
aa57b72fba
1 changed files with 18 additions and 4 deletions
|
@ -22,6 +22,10 @@ class SettingTest < TestCase
|
||||||
)
|
)
|
||||||
click( :css => '#auth_facebook button[type=submit]' )
|
click( :css => '#auth_facebook button[type=submit]' )
|
||||||
watch_for(
|
watch_for(
|
||||||
|
:css => '#notify',
|
||||||
|
:value => 'update successful',
|
||||||
|
)
|
||||||
|
match(
|
||||||
:css => '#auth_facebook select[name="{boolean}auth_facebook"]',
|
:css => '#auth_facebook select[name="{boolean}auth_facebook"]',
|
||||||
:value => 'yes',
|
:value => 'yes',
|
||||||
)
|
)
|
||||||
|
@ -37,6 +41,10 @@ class SettingTest < TestCase
|
||||||
)
|
)
|
||||||
click( :css => '#auth_facebook button[type=submit]' )
|
click( :css => '#auth_facebook button[type=submit]' )
|
||||||
watch_for(
|
watch_for(
|
||||||
|
:css => '#notify',
|
||||||
|
:value => 'update successful',
|
||||||
|
)
|
||||||
|
match(
|
||||||
:css => '#auth_facebook select[name="{boolean}auth_facebook"]',
|
:css => '#auth_facebook select[name="{boolean}auth_facebook"]',
|
||||||
:value => 'no',
|
:value => 'no',
|
||||||
)
|
)
|
||||||
|
@ -55,12 +63,15 @@ class SettingTest < TestCase
|
||||||
:value => 'secret_test1234äöüß',
|
:value => 'secret_test1234äöüß',
|
||||||
)
|
)
|
||||||
click( :css => '#auth_facebook_credentials button[type=submit]' )
|
click( :css => '#auth_facebook_credentials button[type=submit]' )
|
||||||
sleep 4
|
|
||||||
watch_for(
|
watch_for(
|
||||||
|
:css => '#notify',
|
||||||
|
:value => 'update successful',
|
||||||
|
)
|
||||||
|
match(
|
||||||
:css => '#auth_facebook_credentials input[name=app_id]',
|
:css => '#auth_facebook_credentials input[name=app_id]',
|
||||||
:value => 'id_test1234äöüß',
|
:value => 'id_test1234äöüß',
|
||||||
)
|
)
|
||||||
watch_for(
|
match(
|
||||||
:css => '#auth_facebook_credentials input[name=app_secret]',
|
:css => '#auth_facebook_credentials input[name=app_secret]',
|
||||||
:value => 'secret_test1234äöüß',
|
:value => 'secret_test1234äöüß',
|
||||||
)
|
)
|
||||||
|
@ -75,12 +86,15 @@ class SettingTest < TestCase
|
||||||
:value => '---',
|
:value => '---',
|
||||||
)
|
)
|
||||||
click( :css => '#auth_facebook_credentials button[type=submit]' )
|
click( :css => '#auth_facebook_credentials button[type=submit]' )
|
||||||
sleep 4
|
|
||||||
watch_for(
|
watch_for(
|
||||||
|
:css => '#notify',
|
||||||
|
:value => 'update successful',
|
||||||
|
)
|
||||||
|
match(
|
||||||
:css => '#auth_facebook_credentials input[name=app_id]',
|
:css => '#auth_facebook_credentials input[name=app_id]',
|
||||||
:value => '---',
|
:value => '---',
|
||||||
)
|
)
|
||||||
watch_for(
|
match(
|
||||||
:css => '#auth_facebook_credentials input[name=app_secret]',
|
:css => '#auth_facebook_credentials input[name=app_secret]',
|
||||||
:value => '---',
|
:value => '---',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue