Improve switch back selector.

This commit is contained in:
Martin Edenhofer 2015-06-08 20:01:31 +02:00
parent 4ef5eacd83
commit 10580c1007

View file

@ -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')