From 2b030f436fd155bf8eef7297efc4e79bb9fa2089 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 10 Jun 2015 02:28:21 +0200 Subject: [PATCH] Fixed test. --- test/browser/switch_to_user_test.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/browser/switch_to_user_test.rb b/test/browser/switch_to_user_test.rb index b46528497..12a8a45b6 100644 --- a/test/browser/switch_to_user_test.rb +++ b/test/browser/switch_to_user_test.rb @@ -20,26 +20,26 @@ class SwitchToUserTest < TestCase ) sleep 3 + @browser.mouse.move_to( @browser.find_elements( { css: '#content .table-overview tbody tr:first-child' } )[0] ) click( - css: '#content .icon-user', + css: '#content .icon-switchView', ) watch_for( - :css => '#app', + :css => '.switchBackToUser', :value => 'zammad looks like', ) watch_for( - :css => '#app .switchBackToUser', + :css => '.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 .switchBackToUser .js-close' ) + click( css: '.switchBackToUser .js-close' ) login = @browser.find_elements( { css: '.user-menu .user a' } )[0].attribute('title') assert_equal(login, 'master@example.com') end - end