Maintenance: Deleted already ported switch to user test.
This commit is contained in:
parent
587f36d220
commit
61996989b0
2 changed files with 0 additions and 58 deletions
|
@ -105,7 +105,6 @@ elif [ "$LEVEL" == '2' ]; then
|
|||
rm test/browser/integration_sipgate_test.rb
|
||||
rm test/browser/integration_cti_test.rb
|
||||
rm test/browser/preferences_language_test.rb
|
||||
rm test/browser/switch_to_user_test.rb
|
||||
rm test/browser/taskbar_session_test.rb
|
||||
rm test/browser/taskbar_task_test.rb
|
||||
# test/browser/user_access_permissions_test.rb
|
||||
|
@ -158,7 +157,6 @@ elif [ "$LEVEL" == '3' ]; then
|
|||
rm test/browser/integration_sipgate_test.rb
|
||||
rm test/browser/integration_cti_test.rb
|
||||
rm test/browser/preferences_language_test.rb
|
||||
rm test/browser/switch_to_user_test.rb
|
||||
rm test/browser/taskbar_session_test.rb
|
||||
rm test/browser/taskbar_task_test.rb
|
||||
rm test/browser/user_access_permissions_test.rb
|
||||
|
@ -211,7 +209,6 @@ elif [ "$LEVEL" == '4' ]; then
|
|||
rm test/browser/integration_sipgate_test.rb
|
||||
rm test/browser/integration_cti_test.rb
|
||||
rm test/browser/preferences_language_test.rb
|
||||
rm test/browser/switch_to_user_test.rb
|
||||
rm test/browser/taskbar_session_test.rb
|
||||
rm test/browser/taskbar_task_test.rb
|
||||
rm test/browser/user_access_permissions_test.rb
|
||||
|
@ -263,7 +260,6 @@ elif [ "$LEVEL" == '5' ]; then
|
|||
rm test/browser/integration_sipgate_test.rb
|
||||
rm test/browser/integration_cti_test.rb
|
||||
rm test/browser/preferences_language_test.rb
|
||||
rm test/browser/switch_to_user_test.rb
|
||||
rm test/browser/taskbar_session_test.rb
|
||||
rm test/browser/taskbar_task_test.rb
|
||||
rm test/browser/user_access_permissions_test.rb
|
||||
|
@ -318,7 +314,6 @@ elif [ "$LEVEL" == '6' ]; then
|
|||
# rm test/browser/integration_sipgate_test.rb
|
||||
# rm test/browser/integration_cti_test.rb
|
||||
# test/browser/preferences_language_test.rb
|
||||
rm test/browser/switch_to_user_test.rb
|
||||
rm test/browser/taskbar_session_test.rb
|
||||
rm test/browser/taskbar_task_test.rb
|
||||
rm test/browser/user_access_permissions_test.rb
|
||||
|
|
|
@ -1,53 +0,0 @@
|
|||
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'browser_test_helper'
|
||||
|
||||
class SwitchToUserTest < TestCase
|
||||
def test_agent_user
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
tasks_close_all
|
||||
|
||||
click(css: 'a[href="#manage"]')
|
||||
click(css: '.content.active a[href="#manage/users"]')
|
||||
|
||||
set(
|
||||
css: '.content.active .js-search',
|
||||
value: 'nicole',
|
||||
)
|
||||
sleep 3
|
||||
|
||||
@browser.action.move_to(@browser.find_elements({ css: '.content.active .table-overview tbody tr:first-child' })[0]).release.perform
|
||||
|
||||
sleep 0.5
|
||||
click(
|
||||
css: '.content.active .dropdown--actions',
|
||||
)
|
||||
click(
|
||||
css: '.content.active .icon-switchView',
|
||||
ajax: false
|
||||
)
|
||||
sleep 3
|
||||
|
||||
watch_for(
|
||||
css: '.switchBackToUser',
|
||||
value: 'zammad looks like',
|
||||
)
|
||||
watch_for(
|
||||
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: '.switchBackToUser .js-close', ajax: false)
|
||||
|
||||
sleep 5
|
||||
login = @browser.find_elements({ css: '.user-menu .user a' })[0].attribute('title')
|
||||
assert_equal(login, 'admin@example.com')
|
||||
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue