From 61996989b0be20389a389ac948ca239ab1c463d3 Mon Sep 17 00:00:00 2001 From: Dominik Klein Date: Mon, 11 Oct 2021 10:57:50 +0200 Subject: [PATCH] Maintenance: Deleted already ported switch to user test. --- script/build/test_slice_tests.sh | 5 --- test/browser/switch_to_user_test.rb | 53 ----------------------------- 2 files changed, 58 deletions(-) delete mode 100644 test/browser/switch_to_user_test.rb diff --git a/script/build/test_slice_tests.sh b/script/build/test_slice_tests.sh index 2e93cfe5c..b66c3f074 100755 --- a/script/build/test_slice_tests.sh +++ b/script/build/test_slice_tests.sh @@ -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 diff --git a/test/browser/switch_to_user_test.rb b/test/browser/switch_to_user_test.rb deleted file mode 100644 index 56a24343d..000000000 --- a/test/browser/switch_to_user_test.rb +++ /dev/null @@ -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