Improved test.
This commit is contained in:
parent
b0fe4f0446
commit
54b08ad334
1 changed files with 4 additions and 3 deletions
|
@ -273,21 +273,22 @@ class PreferencesTest < TestCase
|
||||||
click( :css => 'a[href="#current_user"]' )
|
click( :css => 'a[href="#current_user"]' )
|
||||||
click( :css => 'a[href="#profile"]' )
|
click( :css => 'a[href="#profile"]' )
|
||||||
click( :css => 'a[href="#profile/language"]' )
|
click( :css => 'a[href="#profile/language"]' )
|
||||||
|
sleep 10
|
||||||
select(
|
select(
|
||||||
:css => '.language_item select[name="locale"]',
|
:css => '.language_item select[name="locale"]',
|
||||||
:value => 'Deutsch',
|
:value => 'Deutsch',
|
||||||
)
|
)
|
||||||
click( :css => '.content button[type="submit"]' )
|
click( :css => '.content button[type="submit"]' )
|
||||||
sleep 2
|
sleep 4
|
||||||
watch_for(
|
watch_for(
|
||||||
:css => 'body',
|
:css => 'body',
|
||||||
:value => 'Sprache',
|
:value => 'Sprache',
|
||||||
)
|
)
|
||||||
sleep 10
|
sleep 16
|
||||||
|
|
||||||
# check if language is still used after reload
|
# check if language is still used after reload
|
||||||
reload()
|
reload()
|
||||||
sleep 10
|
sleep 4
|
||||||
|
|
||||||
watch_for(
|
watch_for(
|
||||||
:css => 'body',
|
:css => 'body',
|
||||||
|
|
Loading…
Reference in a new issue