Maintenance: Inclusive language
This commit is contained in:
parent
f80ac0e707
commit
26db9dbc24
89 changed files with 256 additions and 170 deletions
|
@ -3,7 +3,7 @@ api_client_php:
|
|||
- .template_browser-core_api_client
|
||||
variables:
|
||||
ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_URL: "http://localhost:3000"
|
||||
ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_USERNAME: "master@example.com"
|
||||
ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_USERNAME: "admin@example.com"
|
||||
ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_PASSWORD: "test"
|
||||
script:
|
||||
- RAILS_ENV=test bundle exec rake db:create
|
||||
|
|
|
@ -5,9 +5,8 @@ api_client_ruby:
|
|||
- RAILS_ENV=test bundle exec rake db:create
|
||||
- cp contrib/auto_wizard_test.json auto_wizard.json
|
||||
- bundle exec rake zammad:ci:test:start
|
||||
- git clone https://github.com/zammad/zammad-api-client-ruby.git
|
||||
- git clone https://github.com/zammad/zammad-api-client-ruby.git -b mg/maintenance/inclusive-language
|
||||
- cd zammad-api-client-ruby
|
||||
- bundle update --bundler
|
||||
- bundle install -j $(nproc)
|
||||
- bundle exec rspec
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ class GettingStarted extends App.ControllerWizardFullScreen
|
|||
# set title
|
||||
@title 'Get Started'
|
||||
|
||||
# redirect to login if master user already exists
|
||||
# redirect to login if admin user already exists
|
||||
if @Config.get('system_init_done')
|
||||
@navigate '#login'
|
||||
return
|
||||
|
|
|
@ -12,7 +12,7 @@ class GettingStartedAdmin extends App.ControllerWizardFullScreen
|
|||
# set title
|
||||
@title 'Create Admin'
|
||||
|
||||
# redirect to login if master user already exists
|
||||
# redirect to login if admin user already exists
|
||||
if @Config.get('system_init_done')
|
||||
@navigate '#login'
|
||||
return
|
||||
|
|
|
@ -7,7 +7,7 @@ class GettingStartedAutoWizard extends App.ControllerWizardFullScreen
|
|||
@navigate '#'
|
||||
return
|
||||
|
||||
# redirect to login if master user already exists
|
||||
# redirect to login if admin user already exists
|
||||
if @Config.get('system_init_done')
|
||||
@navigate '#login'
|
||||
return
|
||||
|
@ -48,7 +48,7 @@ class GettingStartedAutoWizard extends App.ControllerWizardFullScreen
|
|||
@renderToken()
|
||||
return
|
||||
|
||||
# redirect to login if master user already exists
|
||||
# redirect to login if admin user already exists
|
||||
@redirectToLogin()
|
||||
)
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ class Import extends App.ControllerWizardFullScreen
|
|||
processData: true,
|
||||
success: (data, status, xhr) =>
|
||||
|
||||
# redirect to login if master user already exists
|
||||
# redirect to login if admin user already exists
|
||||
if @Config.get('system_init_done')
|
||||
@navigate '#login'
|
||||
return
|
||||
|
|
|
@ -27,7 +27,7 @@ class ImportFreshdesk extends App.ControllerWizardFullScreen
|
|||
|
||||
@freshdeskDomain = '.freshdesk.com'
|
||||
|
||||
# redirect to login if master user already exists
|
||||
# redirect to login if admin user already exists
|
||||
if @Config.get('system_init_done')
|
||||
@navigate '#login'
|
||||
return
|
||||
|
|
|
@ -19,7 +19,7 @@ class ImportOtrs extends App.ControllerWizardFullScreen
|
|||
# set title
|
||||
@title 'Import'
|
||||
|
||||
# redirect to login if master user already exists
|
||||
# redirect to login if admin user already exists
|
||||
if @Config.get('system_init_done')
|
||||
@navigate '#login'
|
||||
return
|
||||
|
|
|
@ -25,7 +25,7 @@ class ImportZendesk extends App.ControllerWizardFullScreen
|
|||
# set title
|
||||
@title 'Import'
|
||||
|
||||
# redirect to login if master user already exists
|
||||
# redirect to login if admin user already exists
|
||||
if @Config.get('system_init_done')
|
||||
@navigate '#login'
|
||||
return
|
||||
|
|
|
@ -36,7 +36,7 @@ curl http://localhost/api/v1/getting_started -v -u #{login}:#{password}
|
|||
# check it auto wizard is already done
|
||||
return if auto_wizard_enabled_response
|
||||
|
||||
# if master user already exists, we need to be authenticated
|
||||
# if admin user already exists, we need to be authenticated
|
||||
return if setup_done && !authentication_check
|
||||
|
||||
# return result
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"Users": [
|
||||
{
|
||||
"login": "master@example.com",
|
||||
"login": "admin@example.com",
|
||||
"firstname": "Test Master",
|
||||
"lastname": "Agent",
|
||||
"email": "master@example.com",
|
||||
"email": "admin@example.com",
|
||||
"password": "test"
|
||||
},
|
||||
{
|
||||
|
@ -19,11 +19,11 @@
|
|||
"Groups": [
|
||||
{
|
||||
"name": "some group1",
|
||||
"users": ["master@example.com","agent1@example.com"]
|
||||
"users": ["admin@example.com","agent1@example.com"]
|
||||
},
|
||||
{
|
||||
"name": "Users",
|
||||
"users": ["master@example.com","agent1@example.com"],
|
||||
"users": ["admin@example.com","agent1@example.com"],
|
||||
"signature": "default",
|
||||
"email_address_id": 1
|
||||
}
|
||||
|
|
22
db/migrate/20210816125040_rename_notification_sender.rb
Normal file
22
db/migrate/20210816125040_rename_notification_sender.rb
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
class RenameNotificationSender < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
# return if it's a new setup
|
||||
return if !Setting.exists?(name: 'system_init_done')
|
||||
|
||||
setting = Setting.find_by(
|
||||
name: 'notification_sender',
|
||||
)
|
||||
return if !setting
|
||||
|
||||
# rubocop:disable Lint/InterpolationCheck
|
||||
setting.state_initial[:value] = '#{config.product_name} <noreply@#{config.fqdn}>'
|
||||
|
||||
if setting.state_current[:value].eql? 'Notification Master <noreply@#{config.fqdn}>'
|
||||
setting.state_current[:value] = '#{config.product_name} <noreply@#{config.fqdn}>'
|
||||
end
|
||||
# rubocop:enable Lint/InterpolationCheck
|
||||
setting.save!
|
||||
end
|
||||
end
|
|
@ -2744,7 +2744,7 @@ Setting.create_if_not_exists(
|
|||
},
|
||||
],
|
||||
},
|
||||
state: 'Notification Master <noreply@#{config.fqdn}>', # rubocop:disable Lint/InterpolationCheck
|
||||
state: '#{config.product_name} <noreply@#{config.fqdn}>', # rubocop:disable Lint/InterpolationCheck
|
||||
preferences: {
|
||||
online_service_disable: true,
|
||||
permission: ['admin.channel_email'],
|
||||
|
|
|
@ -13,7 +13,7 @@ class Auth
|
|||
# @param username [String] the user name for the user object which needs an authentication.
|
||||
#
|
||||
# @example
|
||||
# auth = Auth.new('master@example.com', 'some+password')
|
||||
# auth = Auth.new('admin@example.com', 'some+password')
|
||||
def initialize(username, password)
|
||||
@lookup_backend_instance = {}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ class Auth
|
|||
# @param auth [Auth] the Auth object for the authentication.
|
||||
#
|
||||
# @example
|
||||
# auth = Auth::Backend::Internal.new('master@example.com', auth)
|
||||
# auth = Auth::Backend::Internal.new('admin@example.com', auth)
|
||||
def initialize(config, auth)
|
||||
@config = config
|
||||
@auth = auth
|
||||
|
|
|
@ -607,7 +607,7 @@ test('auth - existing user', function(assert) {
|
|||
new Promise( (resolve, reject) => {
|
||||
App.Auth.login({
|
||||
data: {
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
},
|
||||
success: resolve,
|
||||
|
@ -616,7 +616,7 @@ test('auth - existing user', function(assert) {
|
|||
}).then( function(data) {
|
||||
ok(true, 'authenticated')
|
||||
var user = App.Session.get('login')
|
||||
equal('master@example.com', user, 'session login')
|
||||
equal('admin@example.com', user, 'session login')
|
||||
}, function() {
|
||||
ok(false, 'failed')
|
||||
})
|
||||
|
|
|
@ -48,7 +48,7 @@ test( "autocompletion_ajax check", function(assert) {
|
|||
new Promise( (resolve, reject) => {
|
||||
App.Auth.login({
|
||||
data: {
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
},
|
||||
success: resolve,
|
||||
|
@ -59,7 +59,7 @@ test( "autocompletion_ajax check", function(assert) {
|
|||
return new Promise( (resolve, reject) => {
|
||||
notEqual(App.Session.get(), undefined, 'User is logged in so the api requests will work')
|
||||
|
||||
check_ajax_field('autocompletion_ajax1', 'master@example.com', 1, resolve)
|
||||
check_ajax_field('autocompletion_ajax1', 'admin@example.com', 1, resolve)
|
||||
})
|
||||
})
|
||||
.then( function() {
|
||||
|
|
65
spec/db/migrate/rename_notification_sender_spec.rb
Normal file
65
spec/db/migrate/rename_notification_sender_spec.rb
Normal file
|
@ -0,0 +1,65 @@
|
|||
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe RenameNotificationSender, type: :db_migration do
|
||||
before do
|
||||
Setting.find_by(name: 'notification_sender')&.destroy
|
||||
|
||||
# Default value of Zammad 4.1
|
||||
Setting.create(
|
||||
title: 'Notification Sender',
|
||||
name: 'notification_sender',
|
||||
area: 'Email::Base',
|
||||
description: 'Defines the sender of email notifications.',
|
||||
options: {
|
||||
form: [
|
||||
{
|
||||
display: '',
|
||||
null: false,
|
||||
name: 'notification_sender',
|
||||
tag: 'input',
|
||||
},
|
||||
],
|
||||
},
|
||||
state: 'Notification Master <noreply@#{config.fqdn}>', # rubocop:disable Lint/InterpolationCheck
|
||||
preferences: {
|
||||
online_service_disable: true,
|
||||
permission: ['admin.channel_email'],
|
||||
},
|
||||
frontend: false
|
||||
)
|
||||
end
|
||||
|
||||
context 'when migrating unchanged default setting' do
|
||||
it 'sets new value' do
|
||||
expect { migrate }
|
||||
.to change { Setting.find_by(name: 'notification_sender').state_current }
|
||||
.to({ 'value' => '#{config.product_name} <noreply@#{config.fqdn}>' }) # rubocop:disable Lint/InterpolationCheck
|
||||
end
|
||||
|
||||
it 'sets #state_initial' do
|
||||
expect { migrate }
|
||||
.to change { Setting.find_by(name: 'notification_sender').state_initial }
|
||||
.to({ 'value' => '#{config.product_name} <noreply@#{config.fqdn}>' }) # rubocop:disable Lint/InterpolationCheck
|
||||
end
|
||||
end
|
||||
|
||||
context 'when migrating locally changed setting' do
|
||||
before do
|
||||
Setting.set('notification_sender', 'My Custom Sender <sender@local.domain>')
|
||||
end
|
||||
|
||||
it 'does not change the current value' do
|
||||
expect { migrate }
|
||||
.not_to change { Setting.find_by(name: 'notification_sender').state_current }
|
||||
end
|
||||
|
||||
it 'sets #state_initial' do
|
||||
expect { migrate }
|
||||
.to change { Setting.find_by(name: 'notification_sender').state_initial }
|
||||
.to({ 'value' => '#{config.product_name} <noreply@#{config.fqdn}>' }) # rubocop:disable Lint/InterpolationCheck
|
||||
end
|
||||
end
|
||||
|
||||
end
|
|
@ -42,7 +42,7 @@ module ZammadAuthenticatedAsHelper
|
|||
parse_meta_user(input)
|
||||
when true
|
||||
{
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
}
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
# This file registers a hook before each system test
|
||||
# which logs in with/authenticates the master@example.com account.
|
||||
# which logs in with/authenticates the admin@example.com account.
|
||||
|
||||
# we need to make sure that Capybara is configured/started before
|
||||
# this hook. Otherwise a login try is performed while the app/puma
|
||||
|
|
|
@ -9,13 +9,13 @@ module CommonActions
|
|||
#
|
||||
# @example
|
||||
# login(
|
||||
# username: 'master@example.com',
|
||||
# username: 'admin@example.com',
|
||||
# password: 'test',
|
||||
# )
|
||||
#
|
||||
# @example
|
||||
# login(
|
||||
# username: 'master@example.com',
|
||||
# username: 'admin@example.com',
|
||||
# password: 'test',
|
||||
# remember_me: true,
|
||||
# )
|
||||
|
@ -59,7 +59,7 @@ module CommonActions
|
|||
#
|
||||
# @example
|
||||
# current_login
|
||||
# => 'master@example.com'
|
||||
# => 'admin@example.com'
|
||||
#
|
||||
# @return [String] the login of the currently logged in user.
|
||||
def current_login
|
||||
|
@ -70,7 +70,7 @@ module CommonActions
|
|||
#
|
||||
# @example
|
||||
# current_user.login
|
||||
# => 'master@example.com'
|
||||
# => 'admin@example.com'
|
||||
#
|
||||
# @example
|
||||
# current_user do |user|
|
||||
|
|
|
@ -9,7 +9,7 @@ RSpec.configure do |config|
|
|||
Rake::Task['zammad:setup:auto_wizard'].execute if !Setting.get('system_init_done')
|
||||
|
||||
# skip intro/clues for created agents/admins
|
||||
%w[master@example.com agent1@example.com].each do |login|
|
||||
%w[admin@example.com agent1@example.com].each do |login|
|
||||
user = User.find_by(login: login)
|
||||
user.preferences[:intro] = true
|
||||
user.save!
|
||||
|
|
|
@ -6,7 +6,7 @@ RSpec.describe 'Authentication', type: :system do
|
|||
|
||||
it 'Login', authenticated_as: false do
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
)
|
||||
|
||||
|
@ -34,7 +34,7 @@ RSpec.describe 'Authentication', type: :system do
|
|||
expect_current_route 'login', wait: 10
|
||||
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
)
|
||||
|
||||
|
@ -50,7 +50,7 @@ RSpec.describe 'Authentication', type: :system do
|
|||
visit 'https://www.zammad.org'
|
||||
|
||||
# simulate successful login via third party
|
||||
user = User.find_by(login: 'master@example.com')
|
||||
user = User.find_by(login: 'admin@example.com')
|
||||
ActiveRecord::SessionStore::Session.all.each do |session|
|
||||
session.data[:user_id] = user.id
|
||||
session.save!
|
||||
|
@ -61,7 +61,7 @@ RSpec.describe 'Authentication', type: :system do
|
|||
|
||||
expect_current_route 'ticket/zoom/1', wait: 10
|
||||
|
||||
expect(current_login).to eq('master@example.com')
|
||||
expect(current_login).to eq('admin@example.com')
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -8,13 +8,13 @@ RSpec.describe 'Getting Started > Agents', type: :system do
|
|||
|
||||
fill_in 'firstname', with: 'Test'
|
||||
fill_in 'lastname', with: 'Test'
|
||||
fill_in 'email', with: 'master@example.com'
|
||||
fill_in 'email', with: 'admin@example.com'
|
||||
|
||||
click '.btn--success'
|
||||
|
||||
within '.js-danger' do
|
||||
expect(page)
|
||||
.to have_text("Email address 'master@example.com' is already used for other user.")
|
||||
.to have_text("Email address 'admin@example.com' is already used for other user.")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe 'Profile > Devices', type: :system do
|
||||
subject!(:device) { create(:user_device, user_id: User.find_by(login: 'master@example.com').id) }
|
||||
subject!(:device) { create(:user_device, user_id: User.find_by(login: 'admin@example.com').id) }
|
||||
|
||||
it 'allows to remove device' do
|
||||
visit 'profile/devices'
|
||||
|
|
|
@ -14,6 +14,6 @@ RSpec.describe 'Auto wizard', type: :system, set_up: false do
|
|||
|
||||
visit 'getting_started/auto_wizard'
|
||||
|
||||
expect(current_login).to eq('master@example.com')
|
||||
expect(current_login).to eq('admin@example.com')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -29,7 +29,7 @@ RSpec.describe 'System setup process', type: :system, set_up: false, authenticat
|
|||
within('.js-admin') do
|
||||
fill_in 'firstname', with: 'Test Master'
|
||||
fill_in 'lastname', with: 'Agent'
|
||||
fill_in 'email', with: 'master@example.com'
|
||||
fill_in 'email', with: 'admin@example.com'
|
||||
fill_in 'password', with: 'TEst1234äöüß'
|
||||
fill_in 'password_confirm', with: 'TEst1234äöüß'
|
||||
|
||||
|
@ -119,7 +119,7 @@ RSpec.describe 'System setup process', type: :system, set_up: false, authenticat
|
|||
within('.js-admin') do
|
||||
fill_in 'firstname', with: 'Test Master'
|
||||
fill_in 'lastname', with: 'Agent'
|
||||
fill_in 'email', with: 'master@example.com'
|
||||
fill_in 'email', with: 'admin@example.com'
|
||||
fill_in 'password', with: 'asd'
|
||||
fill_in 'password_confirm', with: 'asd'
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ require 'rails_helper'
|
|||
RSpec.describe 'Ticket history', type: :system, time_zone: 'Europe/London' do
|
||||
let(:group) { Group.find_by(name: 'Users') }
|
||||
let(:ticket) { create(:ticket, group: group) }
|
||||
let!(:session_user) { User.find_by(login: 'master@example.com') }
|
||||
let!(:session_user) { User.find_by(login: 'admin@example.com') }
|
||||
|
||||
before do
|
||||
freeze_time
|
||||
|
|
|
@ -6,7 +6,7 @@ RSpec.describe 'Ticket zoom', type: :system do
|
|||
|
||||
describe 'owner auto-assignment', authenticated_as: :authenticate do
|
||||
let!(:ticket) { create(:ticket, group: Group.find_by(name: 'Users'), state: Ticket::State.find_by(name: 'new')) }
|
||||
let!(:session_user) { User.find_by(login: 'master@example.com') }
|
||||
let!(:session_user) { User.find_by(login: 'admin@example.com') }
|
||||
|
||||
context 'for agent disabled' do
|
||||
def authenticate
|
||||
|
|
|
@ -5,7 +5,7 @@ require 'rails_helper'
|
|||
RSpec.describe 'Ticket history', type: :system, time_zone: 'Europe/London' do
|
||||
let(:group) { Group.find_by(name: 'Users') }
|
||||
let(:customer) { create(:customer) }
|
||||
let!(:session_user) { User.find_by(login: 'master@example.com') }
|
||||
let!(:session_user) { User.find_by(login: 'admin@example.com') }
|
||||
|
||||
before do
|
||||
freeze_time
|
||||
|
|
|
@ -33,7 +33,7 @@ class AaaGettingStartedTest < TestCase
|
|||
)
|
||||
set(
|
||||
css: '.js-admin input[name="email"]',
|
||||
value: 'master@example.com',
|
||||
value: 'admin@example.com',
|
||||
)
|
||||
set(
|
||||
css: '.js-admin input[name="firstname"]',
|
||||
|
|
|
@ -9,7 +9,7 @@ class AgentTicketActionLevel0Test < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -206,7 +206,7 @@ class AgentTicketActionLevel0Test < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -217,7 +217,7 @@ class AgentTicketActionLevel0Test < TestCase
|
|||
name: "some group #{rand(999_999_999)}",
|
||||
member: [
|
||||
{
|
||||
login: 'master@example.com',
|
||||
login: 'admin@example.com',
|
||||
access: 'full',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ class AdminCalendarSlaTest < TestCase
|
|||
def test_calendar
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -44,7 +44,7 @@ class AdminCalendarSlaTest < TestCase
|
|||
logout
|
||||
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
)
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ class AdminChannelEmailTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -132,7 +132,7 @@ class AdminChannelEmailTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ class AdminDragDropToNewGroupTest < TestCase
|
|||
def test_group_via_role
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -23,7 +23,7 @@ class AdminDragDropToNewGroupTest < TestCase
|
|||
def test_new_group
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -92,7 +92,7 @@ class AdminDragDropToNewGroupTest < TestCase
|
|||
watch_for(css: user_css)
|
||||
|
||||
user_element = @browser.find_elements(css: user_css).find do |el|
|
||||
el.text.strip == 'master@example.com'
|
||||
el.text.strip == 'admin@example.com'
|
||||
end
|
||||
|
||||
user_element.click
|
||||
|
|
|
@ -8,7 +8,7 @@ class AdminObjectManagerTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -161,7 +161,7 @@ class AdminObjectManagerTest < TestCase
|
|||
def test_basic_b
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -385,7 +385,7 @@ class AdminObjectManagerTest < TestCase
|
|||
def test_basic_c
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -494,7 +494,7 @@ class AdminObjectManagerTest < TestCase
|
|||
def test_that_attributes_with_references_should_have_a_disabled_delete_button
|
||||
@browser = instance = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -591,7 +591,7 @@ class AdminObjectManagerTest < TestCase
|
|||
def test_proper_sorting_of_select_attributes
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -675,7 +675,7 @@ class AdminObjectManagerTest < TestCase
|
|||
def test_deleted_select_attributes
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -784,7 +784,7 @@ class AdminObjectManagerTest < TestCase
|
|||
def test_false_boolean_attributes_gets_displayed_for_organizations
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -860,7 +860,7 @@ class AdminObjectManagerTest < TestCase
|
|||
def test_false_boolean_attributes_gets_displayed_for_users
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ class AdminObjectManagerTreeSelectTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -122,7 +122,7 @@ class AdminObjectManagerTreeSelectTest < TestCase
|
|||
def test_modify_tree_select_attributes
|
||||
@browser = instance = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ class AdminOverviewTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -45,7 +45,7 @@ class AdminOverviewTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -131,7 +131,7 @@ class AdminOverviewTest < TestCase
|
|||
def test_overview_toggle_out_of_office_setting
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@ class AdminPermissionsGranularVsFullTest < TestCase
|
|||
new_group_name = "permissions_test_group#{rand(99_999_999)}"
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -30,7 +30,7 @@ class AdminPermissionsGranularVsFullTest < TestCase
|
|||
user_css = '.user-list .js-tableBody tr td'
|
||||
watch_for(css: user_css)
|
||||
@browser.find_elements(css: '.content.active .user-list td:first-child').each do |entry|
|
||||
next if entry.text.strip != 'master@example.com'
|
||||
next if entry.text.strip != 'admin@example.com'
|
||||
|
||||
entry.click
|
||||
break
|
||||
|
|
|
@ -6,7 +6,7 @@ class AdminRoleTest < TestCase
|
|||
def test_role_device
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -79,7 +79,7 @@ class AdminRoleTest < TestCase
|
|||
|
||||
logout
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -141,7 +141,7 @@ class AdminRoleTest < TestCase
|
|||
|
||||
# add admin.user to agent role
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -196,7 +196,7 @@ class AdminRoleTest < TestCase
|
|||
# revoke admin.user
|
||||
logout
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -234,7 +234,7 @@ class AdminRoleTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ class AgentNavigationAndTitleTest < TestCase
|
|||
def test_highlight_and_title
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -10,7 +10,7 @@ class AgentOrganizationProfileTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -162,7 +162,7 @@ class AgentOrganizationProfileTest < TestCase
|
|||
def test_org_profile_user_active_update
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -195,7 +195,7 @@ class AgentTicketAttachmentTest < TestCase
|
|||
browser2 = browser_instance
|
||||
login(
|
||||
browser: browser2,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ class AgentTicketCreateResetCustomerSelectionTest < TestCase
|
|||
def test_clear_customer
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -90,7 +90,7 @@ class AgentTicketCreateResetCustomerSelectionTest < TestCase
|
|||
def test_clear_customer_use_email
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -242,7 +242,7 @@ class AgentTicketCreateResetCustomerSelectionTest < TestCase
|
|||
|
||||
watch_for(
|
||||
css: '.content.active .tabsSidebar .sidebar[data-tab="customer"]',
|
||||
value: 'master@example.com',
|
||||
value: 'admin@example.com',
|
||||
)
|
||||
|
||||
# cleanup
|
||||
|
|
|
@ -102,7 +102,7 @@ class AgentTicketEmailReplyKeepBodyTest < TestCase
|
|||
def test_full_quote
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -178,7 +178,7 @@ class AgentTicketEmailReplyKeepBodyTest < TestCase
|
|||
def test_full_quote_german_locale
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -16,7 +16,7 @@ class AgentTicketEmailSignatureTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -47,7 +47,7 @@ class AgentTicketEmailSignatureTest < TestCase
|
|||
signature: signature_name1,
|
||||
member: [
|
||||
{
|
||||
login: 'master@example.com',
|
||||
login: 'admin@example.com',
|
||||
access: 'full',
|
||||
},
|
||||
],
|
||||
|
@ -59,7 +59,7 @@ class AgentTicketEmailSignatureTest < TestCase
|
|||
signature: signature_name2,
|
||||
member: [
|
||||
{
|
||||
login: 'master@example.com',
|
||||
login: 'admin@example.com',
|
||||
access: 'full',
|
||||
},
|
||||
],
|
||||
|
@ -70,7 +70,7 @@ class AgentTicketEmailSignatureTest < TestCase
|
|||
name: group_name3,
|
||||
member: [
|
||||
{
|
||||
login: 'master@example.com',
|
||||
login: 'admin@example.com',
|
||||
access: 'full',
|
||||
},
|
||||
],
|
||||
|
|
|
@ -35,7 +35,7 @@ class AgentTicketLinkTest < TestCase
|
|||
browser2 = browser_instance
|
||||
login(
|
||||
browser: browser2,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -45,7 +45,7 @@ class AgentTicketMacroTest < TestCase
|
|||
def test_ux_flow_next_up_stay_on_tab
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -90,7 +90,7 @@ class AgentTicketMacroTest < TestCase
|
|||
def test_ux_flow_next_up_close_tab
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -123,7 +123,7 @@ class AgentTicketMacroTest < TestCase
|
|||
def test_ux_flow_next_up_advance_to_next_ticket_from_overview
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ class AgentTicketOnlineNotificationTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -242,7 +242,7 @@ class AgentTicketOnlineNotificationTest < TestCase
|
|||
def test_online_notifications_render
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -16,7 +16,7 @@ class AgentTicketOverviewGroupByOrganizationTest < TestCase
|
|||
|
||||
@browser = instance = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ class AgentTicketOverviewLevel0Test < TestCase
|
|||
def test_bulk_close
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -219,7 +219,7 @@ class AgentTicketOverviewLevel0Test < TestCase
|
|||
def test_bulk_pending
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -370,7 +370,7 @@ class AgentTicketOverviewLevel0Test < TestCase
|
|||
def test_bulk_owner_change
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -472,7 +472,7 @@ class AgentTicketOverviewLevel0Test < TestCase
|
|||
def test_no_bulk_action_when_missing_change_permission
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -495,7 +495,7 @@ class AgentTicketOverviewLevel0Test < TestCase
|
|||
|
||||
user_edit(
|
||||
data: {
|
||||
login: 'master@example.com',
|
||||
login: 'admin@example.com',
|
||||
permissions: { 1 => ['full'],
|
||||
2 => ['full'],
|
||||
3 => ['full'], }
|
||||
|
@ -531,7 +531,7 @@ class AgentTicketOverviewLevel0Test < TestCase
|
|||
}
|
||||
)
|
||||
|
||||
logout # logout as master@example.com then login as agent2@example.com
|
||||
logout # logout as admin@example.com then login as agent2@example.com
|
||||
login(
|
||||
username: 'agent2@example.com',
|
||||
password: 'test',
|
||||
|
@ -612,9 +612,9 @@ class AgentTicketOverviewLevel0Test < TestCase
|
|||
|
||||
# cleanup
|
||||
tasks_close_all
|
||||
logout # logout as agent2@example.com and then login as master@example.com to clean up tickets
|
||||
logout # logout as agent2@example.com and then login as admin@example.com to clean up tickets
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -10,7 +10,7 @@ class AgentTicketOverviewLevel1Test < TestCase
|
|||
browser1 = browser_instance
|
||||
login(
|
||||
browser: browser1,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -10,7 +10,7 @@ class AgentTicketOverviewPendingTil < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -20,7 +20,7 @@ class AgentTicketOverviewTabTest < TestCase
|
|||
def test_i
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -97,7 +97,7 @@ class AgentTicketTagTest < TestCase
|
|||
browser2 = browser_instance
|
||||
login(
|
||||
browser: browser2,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -365,7 +365,7 @@ class AgentTicketTagTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ class AgentTicketTaskChangedTest < TestCase
|
|||
def test_detection_of_ticket_update_after_new_attribute
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ class AgentTicketTextModuleTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ class AgentTicketTimeAccountingTest < TestCase
|
|||
def test_macro
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -145,7 +145,7 @@ class AgentTicketTimeAccountingTest < TestCase
|
|||
def test_closing_time_accounting_modal_by_clicking_background
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@ class AgentTicketUpdate2Test < TestCase
|
|||
browser1 = browser_instance
|
||||
login(
|
||||
browser: browser1,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ class AgentTicketUpdate3Test < TestCase
|
|||
browser1 = browser_instance
|
||||
login(
|
||||
browser: browser1,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ class AgentTicketUpdate4Test < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ class AgentUserProfileTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ class ChatNoJqueryTest < TestCase
|
|||
agent = browser_instance
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -176,7 +176,7 @@ class ChatNoJqueryTest < TestCase
|
|||
agent = browser_instance
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -289,7 +289,7 @@ class ChatNoJqueryTest < TestCase
|
|||
agent = browser_instance
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -444,7 +444,7 @@ class ChatNoJqueryTest < TestCase
|
|||
agent = browser_instance
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -598,7 +598,7 @@ class ChatNoJqueryTest < TestCase
|
|||
agent = browser_instance
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -670,7 +670,7 @@ class ChatNoJqueryTest < TestCase
|
|||
agent = browser_instance
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -839,7 +839,7 @@ class ChatNoJqueryTest < TestCase
|
|||
def disable_chat
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ class ChatTest < TestCase
|
|||
agent = browser_instance
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -176,7 +176,7 @@ class ChatTest < TestCase
|
|||
agent = browser_instance
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -289,7 +289,7 @@ class ChatTest < TestCase
|
|||
agent = browser_instance
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -444,7 +444,7 @@ class ChatTest < TestCase
|
|||
agent = browser_instance
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -598,7 +598,7 @@ class ChatTest < TestCase
|
|||
agent = browser_instance
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -670,7 +670,7 @@ class ChatTest < TestCase
|
|||
agent = browser_instance
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -839,7 +839,7 @@ class ChatTest < TestCase
|
|||
def disable_chat
|
||||
login(
|
||||
browser: agent,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ class CustomerTicketCreateFieldsTest < TestCase
|
|||
|
||||
# create agent session and fetch object attributes
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -17,7 +17,7 @@ class CustomerTicketCreateFieldsTest < TestCase
|
|||
|
||||
# re-create agent session and fetch object attributes
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -209,7 +209,7 @@ class CustomerTicketCreateTest < TestCase
|
|||
|
||||
# verify if we still can create new tickets as agent
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -231,7 +231,7 @@ class CustomerTicketCreateTest < TestCase
|
|||
|
||||
# disable ticket creation
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -261,7 +261,7 @@ class CustomerTicketCreateTest < TestCase
|
|||
# enable ticket creation
|
||||
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -10,7 +10,7 @@ class FirstStepsTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -16,7 +16,7 @@ class IntegrationCtiTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -82,7 +82,7 @@ class IntegrationCtiTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -160,7 +160,7 @@ class IntegrationCtiTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -220,7 +220,7 @@ class IntegrationCtiTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ class IntegrationSipgateTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@ class IntegrationTest < TestCase
|
|||
def test_sipgate
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -79,7 +79,7 @@ class IntegrationTest < TestCase
|
|||
def test_slack
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -165,7 +165,7 @@ class IntegrationTest < TestCase
|
|||
def test_clearbit
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -255,7 +255,7 @@ class IntegrationTest < TestCase
|
|||
def test_icinga
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ class KeyboardShortcutsTest < TestCase
|
|||
def test_navigation
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@ class MaintenanceAppVersionTest < TestCase
|
|||
def test_app_version
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ class MaintenanceModeTest < TestCase
|
|||
browser1 = browser_instance
|
||||
login(
|
||||
browser: browser1,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -75,7 +75,7 @@ class MaintenanceModeTest < TestCase
|
|||
sleep 4
|
||||
login(
|
||||
browser: browser1,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -14,7 +14,7 @@ class MaintenanceSessionMessageTest < TestCase
|
|||
browser1 = browser_instance
|
||||
login(
|
||||
browser: browser1,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -10,7 +10,7 @@ class ManageTest < TestCase
|
|||
# user management
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ class MonitoringTest < TestCase
|
|||
browser1 = browser_instance
|
||||
login(
|
||||
browser: browser1,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@ class PreferencesLanguageTest < TestCase
|
|||
def test_lang_change
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@ class PreferencesPermissionCheckTest < TestCase
|
|||
def test_permission_agent
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@ class ReportingTest < TestCase
|
|||
@browser = browser_instance
|
||||
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ class SettingTest < TestCase
|
|||
def test_setting
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -145,7 +145,7 @@ class SettingTest < TestCase
|
|||
def test_product_name
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ class SwitchToUserTest < TestCase
|
|||
def test_agent_user
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -47,7 +47,7 @@ class SwitchToUserTest < TestCase
|
|||
|
||||
sleep 5
|
||||
login = @browser.find_elements({ css: '.user-menu .user a' })[0].attribute('title')
|
||||
assert_equal(login, 'master@example.com')
|
||||
assert_equal(login, 'admin@example.com')
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -43,7 +43,7 @@ class TaskbarSessionTest < TestCase
|
|||
browser1 = browser_instance
|
||||
login(
|
||||
browser: browser1,
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -82,7 +82,7 @@ class TaskbarTaskTest < TestCase
|
|||
|
||||
# relogin with master - task are not viewable
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@ class TranslationTest < TestCase
|
|||
def test_preferences
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -256,7 +256,7 @@ class TranslationTest < TestCase
|
|||
def test_admin_sync
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
@ -323,7 +323,7 @@ class TranslationTest < TestCase
|
|||
def test_rerender_when_new_phrases_detected
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -123,7 +123,7 @@ class AgentProfilePermissionsTest < TestCase
|
|||
def test_agent_to_edit_admin_ticket_user_details
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
)
|
||||
|
|
|
@ -4667,7 +4667,7 @@ wait untill text in selector disabppears
|
|||
def fetch_settings
|
||||
url = URI.parse(browser_url)
|
||||
req = Net::HTTP::Get.new("#{browser_url}/api/v1/settings/")
|
||||
req.basic_auth('master@example.com', 'test')
|
||||
req.basic_auth('admin@example.com', 'test')
|
||||
|
||||
res = Net::HTTP.start(url.host, url.port) do |http|
|
||||
http.request(req)
|
||||
|
@ -4692,7 +4692,7 @@ wait untill text in selector disabppears
|
|||
url = URI.parse(browser_url)
|
||||
req = Net::HTTP::Put.new("#{browser_url}/api/v1/settings/#{id}")
|
||||
req['Content-Type'] = 'application/json'
|
||||
req.basic_auth('master@example.com', 'test')
|
||||
req.basic_auth('admin@example.com', 'test')
|
||||
req.body = { 'state_current' => { 'value' => value } }.to_json
|
||||
res = Net::HTTP.start(url.host, url.port) do |http|
|
||||
http.request(req)
|
||||
|
|
|
@ -10,7 +10,7 @@ class AaaAutoWizardBaseSetupTest < TestCase
|
|||
watch_for(
|
||||
css: '.user-menu .user a',
|
||||
attribute: 'title',
|
||||
value: 'master@example.com',
|
||||
value: 'admin@example.com',
|
||||
timeout: 14,
|
||||
)
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ class EmailPostmasterToSender < ActiveSupport::TestCase
|
|||
@folder = "postmaster_to_sender_#{@test_id}"
|
||||
|
||||
if ENV['MAIL_SERVER_EMAIL'].blank?
|
||||
raise "Need MAIL_SERVER_EMAIL as ENV variable like export MAIL_SERVER_EMAIL='master@example.com'"
|
||||
raise "Need MAIL_SERVER_EMAIL as ENV variable like export MAIL_SERVER_EMAIL='admin@example.com'"
|
||||
end
|
||||
|
||||
@sender_email_address = ENV['MAIL_SERVER_EMAIL']
|
||||
|
|
|
@ -24,7 +24,7 @@ class IntegrationIdoitTest < TestCase
|
|||
|
||||
@browser = browser_instance
|
||||
login(
|
||||
username: 'master@example.com',
|
||||
username: 'admin@example.com',
|
||||
password: 'test',
|
||||
url: browser_url,
|
||||
auto_wizard: true,
|
||||
|
@ -95,7 +95,7 @@ class IntegrationIdoitTest < TestCase
|
|||
# reselect the customer and verify if object is still shown in sidebar
|
||||
ticket_customer_select(
|
||||
css: '.content.active .newTicket',
|
||||
customer: 'master',
|
||||
customer: 'admin',
|
||||
)
|
||||
|
||||
watch_for(
|
||||
|
|
Loading…
Reference in a new issue