Improve switch back selector.
This commit is contained in:
parent
4ef5eacd83
commit
10580c1007
1 changed files with 5 additions and 1 deletions
|
@ -28,10 +28,14 @@ class SwitchToUserTest < TestCase
|
|||
:css => '#app',
|
||||
:value => 'zammad looks like',
|
||||
)
|
||||
watch_for(
|
||||
:css => '#app .switchBackToUser',
|
||||
:value => 'Nicole',
|
||||
)
|
||||
login = @browser.find_elements( { css: '.user-menu .user a' } )[0].attribute('title')
|
||||
assert_equal(login, 'nicole.braun@zammad.org')
|
||||
|
||||
click( css: '#app .js-close' )
|
||||
click( css: '#app .switchBackToUser .js-close' )
|
||||
|
||||
login = @browser.find_elements( { css: '.user-menu .user a' } )[0].attribute('title')
|
||||
assert_equal(login, 'master@example.com')
|
||||
|
|
Loading…
Reference in a new issue