Fixed browser test (new wording) and code cleanup.

This commit is contained in:
Martin Edenhofer 2017-02-04 09:40:34 +01:00
parent f0ff543bfb
commit c944c9999a
2 changed files with 11 additions and 11 deletions

View file

@ -10,10 +10,10 @@ class AACBasicRichtextTest < TestCase
url: browser_url,
)
click( css: 'a[href="#current_user"]' )
click( css: 'a[href="#layout_ref"]' )
click( css: 'a[href="#layout_ref/richtext"]' )
click( css: 'a[href="#current_user"]' )
click(css: 'a[href="#current_user"]')
click(css: 'a[href="#layout_ref"]')
click(css: 'a[href="#layout_ref/richtext"]')
click(css: 'a[href="#current_user"]')
# richtext single line
set(
@ -22,8 +22,8 @@ class AACBasicRichtextTest < TestCase
slow: true,
)
sleep 1
sendkey( value: :enter )
sendkey( value: 'and some other for browser' )
sendkey(value: :enter)
sendkey(value: 'and some other for browser')
sleep 1
match(
@ -38,8 +38,8 @@ class AACBasicRichtextTest < TestCase
slow: true,
)
sleep 1
sendkey( value: :enter )
sendkey( value: 'and some other for browser' )
sendkey(value: :enter)
sendkey(value: 'and some other for browser')
sleep 1
match(
@ -55,8 +55,8 @@ class AACBasicRichtextTest < TestCase
slow: true,
)
sleep 1
sendkey( value: :enter )
sendkey( value: 'and some other for browser2' )
sendkey(value: :enter)
sendkey(value: 'and some other for browser2')
sleep 1
match(

View file

@ -79,7 +79,7 @@ class SignupPasswordChangeAndResetTest < TestCase
)
watch_for(
css: '#content',
value: 'Your email is verified',
value: 'Your email address has been verified',
)
exists_not(
css: '.modal',