Maintenance: Inclusive language

This commit is contained in:
Martin Gruner 2021-08-17 14:10:02 +02:00 committed by Thorsten Eckel
parent f80ac0e707
commit 26db9dbc24
89 changed files with 256 additions and 170 deletions

View file

@ -3,7 +3,7 @@ api_client_php:
- .template_browser-core_api_client - .template_browser-core_api_client
variables: variables:
ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_URL: "http://localhost:3000" 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" ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_PASSWORD: "test"
script: script:
- RAILS_ENV=test bundle exec rake db:create - RAILS_ENV=test bundle exec rake db:create

View file

@ -5,9 +5,8 @@ api_client_ruby:
- RAILS_ENV=test bundle exec rake db:create - RAILS_ENV=test bundle exec rake db:create
- cp contrib/auto_wizard_test.json auto_wizard.json - cp contrib/auto_wizard_test.json auto_wizard.json
- bundle exec rake zammad:ci:test:start - 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 - cd zammad-api-client-ruby
- bundle update --bundler - bundle update --bundler
- bundle install -j $(nproc) - bundle install -j $(nproc)
- bundle exec rspec - bundle exec rspec

View file

@ -9,7 +9,7 @@ class GettingStarted extends App.ControllerWizardFullScreen
# set title # set title
@title 'Get Started' @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') if @Config.get('system_init_done')
@navigate '#login' @navigate '#login'
return return

View file

@ -12,7 +12,7 @@ class GettingStartedAdmin extends App.ControllerWizardFullScreen
# set title # set title
@title 'Create Admin' @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') if @Config.get('system_init_done')
@navigate '#login' @navigate '#login'
return return

View file

@ -7,7 +7,7 @@ class GettingStartedAutoWizard extends App.ControllerWizardFullScreen
@navigate '#' @navigate '#'
return return
# redirect to login if master user already exists # redirect to login if admin user already exists
if @Config.get('system_init_done') if @Config.get('system_init_done')
@navigate '#login' @navigate '#login'
return return
@ -48,7 +48,7 @@ class GettingStartedAutoWizard extends App.ControllerWizardFullScreen
@renderToken() @renderToken()
return return
# redirect to login if master user already exists # redirect to login if admin user already exists
@redirectToLogin() @redirectToLogin()
) )

View file

@ -14,7 +14,7 @@ class Import extends App.ControllerWizardFullScreen
processData: true, processData: true,
success: (data, status, xhr) => 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') if @Config.get('system_init_done')
@navigate '#login' @navigate '#login'
return return

View file

@ -27,7 +27,7 @@ class ImportFreshdesk extends App.ControllerWizardFullScreen
@freshdeskDomain = '.freshdesk.com' @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') if @Config.get('system_init_done')
@navigate '#login' @navigate '#login'
return return

View file

@ -19,7 +19,7 @@ class ImportOtrs extends App.ControllerWizardFullScreen
# set title # set title
@title 'Import' @title 'Import'
# redirect to login if master user already exists # redirect to login if admin user already exists
if @Config.get('system_init_done') if @Config.get('system_init_done')
@navigate '#login' @navigate '#login'
return return

View file

@ -25,7 +25,7 @@ class ImportZendesk extends App.ControllerWizardFullScreen
# set title # set title
@title 'Import' @title 'Import'
# redirect to login if master user already exists # redirect to login if admin user already exists
if @Config.get('system_init_done') if @Config.get('system_init_done')
@navigate '#login' @navigate '#login'
return return

View file

@ -36,7 +36,7 @@ curl http://localhost/api/v1/getting_started -v -u #{login}:#{password}
# check it auto wizard is already done # check it auto wizard is already done
return if auto_wizard_enabled_response 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 if setup_done && !authentication_check
# return result # return result

View file

@ -1,10 +1,10 @@
{ {
"Users": [ "Users": [
{ {
"login": "master@example.com", "login": "admin@example.com",
"firstname": "Test Master", "firstname": "Test Master",
"lastname": "Agent", "lastname": "Agent",
"email": "master@example.com", "email": "admin@example.com",
"password": "test" "password": "test"
}, },
{ {
@ -19,11 +19,11 @@
"Groups": [ "Groups": [
{ {
"name": "some group1", "name": "some group1",
"users": ["master@example.com","agent1@example.com"] "users": ["admin@example.com","agent1@example.com"]
}, },
{ {
"name": "Users", "name": "Users",
"users": ["master@example.com","agent1@example.com"], "users": ["admin@example.com","agent1@example.com"],
"signature": "default", "signature": "default",
"email_address_id": 1 "email_address_id": 1
} }

View 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

View file

@ -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: { preferences: {
online_service_disable: true, online_service_disable: true,
permission: ['admin.channel_email'], permission: ['admin.channel_email'],

View file

@ -13,7 +13,7 @@ class Auth
# @param username [String] the user name for the user object which needs an authentication. # @param username [String] the user name for the user object which needs an authentication.
# #
# @example # @example
# auth = Auth.new('master@example.com', 'some+password') # auth = Auth.new('admin@example.com', 'some+password')
def initialize(username, password) def initialize(username, password)
@lookup_backend_instance = {} @lookup_backend_instance = {}

View file

@ -14,7 +14,7 @@ class Auth
# @param auth [Auth] the Auth object for the authentication. # @param auth [Auth] the Auth object for the authentication.
# #
# @example # @example
# auth = Auth::Backend::Internal.new('master@example.com', auth) # auth = Auth::Backend::Internal.new('admin@example.com', auth)
def initialize(config, auth) def initialize(config, auth)
@config = config @config = config
@auth = auth @auth = auth

View file

@ -607,7 +607,7 @@ test('auth - existing user', function(assert) {
new Promise( (resolve, reject) => { new Promise( (resolve, reject) => {
App.Auth.login({ App.Auth.login({
data: { data: {
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
}, },
success: resolve, success: resolve,
@ -616,7 +616,7 @@ test('auth - existing user', function(assert) {
}).then( function(data) { }).then( function(data) {
ok(true, 'authenticated') ok(true, 'authenticated')
var user = App.Session.get('login') var user = App.Session.get('login')
equal('master@example.com', user, 'session login') equal('admin@example.com', user, 'session login')
}, function() { }, function() {
ok(false, 'failed') ok(false, 'failed')
}) })

View file

@ -48,7 +48,7 @@ test( "autocompletion_ajax check", function(assert) {
new Promise( (resolve, reject) => { new Promise( (resolve, reject) => {
App.Auth.login({ App.Auth.login({
data: { data: {
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
}, },
success: resolve, success: resolve,
@ -59,7 +59,7 @@ test( "autocompletion_ajax check", function(assert) {
return new Promise( (resolve, reject) => { return new Promise( (resolve, reject) => {
notEqual(App.Session.get(), undefined, 'User is logged in so the api requests will work') 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() { .then( function() {

View 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

View file

@ -42,7 +42,7 @@ module ZammadAuthenticatedAsHelper
parse_meta_user(input) parse_meta_user(input)
when true when true
{ {
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
} }
end end

View file

@ -1,7 +1,7 @@
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
# This file registers a hook before each system test # 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 # we need to make sure that Capybara is configured/started before
# this hook. Otherwise a login try is performed while the app/puma # this hook. Otherwise a login try is performed while the app/puma

View file

@ -9,13 +9,13 @@ module CommonActions
# #
# @example # @example
# login( # login(
# username: 'master@example.com', # username: 'admin@example.com',
# password: 'test', # password: 'test',
# ) # )
# #
# @example # @example
# login( # login(
# username: 'master@example.com', # username: 'admin@example.com',
# password: 'test', # password: 'test',
# remember_me: true, # remember_me: true,
# ) # )
@ -59,7 +59,7 @@ module CommonActions
# #
# @example # @example
# current_login # current_login
# => 'master@example.com' # => 'admin@example.com'
# #
# @return [String] the login of the currently logged in user. # @return [String] the login of the currently logged in user.
def current_login def current_login
@ -70,7 +70,7 @@ module CommonActions
# #
# @example # @example
# current_user.login # current_user.login
# => 'master@example.com' # => 'admin@example.com'
# #
# @example # @example
# current_user do |user| # current_user do |user|

View file

@ -9,7 +9,7 @@ RSpec.configure do |config|
Rake::Task['zammad:setup:auto_wizard'].execute if !Setting.get('system_init_done') Rake::Task['zammad:setup:auto_wizard'].execute if !Setting.get('system_init_done')
# skip intro/clues for created agents/admins # 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 = User.find_by(login: login)
user.preferences[:intro] = true user.preferences[:intro] = true
user.save! user.save!

View file

@ -6,7 +6,7 @@ RSpec.describe 'Authentication', type: :system do
it 'Login', authenticated_as: false do it 'Login', authenticated_as: false do
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
) )
@ -34,7 +34,7 @@ RSpec.describe 'Authentication', type: :system do
expect_current_route 'login', wait: 10 expect_current_route 'login', wait: 10
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
) )
@ -50,7 +50,7 @@ RSpec.describe 'Authentication', type: :system do
visit 'https://www.zammad.org' visit 'https://www.zammad.org'
# simulate successful login via third party # 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| ActiveRecord::SessionStore::Session.all.each do |session|
session.data[:user_id] = user.id session.data[:user_id] = user.id
session.save! session.save!
@ -61,7 +61,7 @@ RSpec.describe 'Authentication', type: :system do
expect_current_route 'ticket/zoom/1', wait: 10 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
end end

View file

@ -8,13 +8,13 @@ RSpec.describe 'Getting Started > Agents', type: :system do
fill_in 'firstname', with: 'Test' fill_in 'firstname', with: 'Test'
fill_in 'lastname', with: 'Test' fill_in 'lastname', with: 'Test'
fill_in 'email', with: 'master@example.com' fill_in 'email', with: 'admin@example.com'
click '.btn--success' click '.btn--success'
within '.js-danger' do within '.js-danger' do
expect(page) 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 end
end end

View file

@ -3,7 +3,7 @@
require 'rails_helper' require 'rails_helper'
RSpec.describe 'Profile > Devices', type: :system do 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 it 'allows to remove device' do
visit 'profile/devices' visit 'profile/devices'

View file

@ -14,6 +14,6 @@ RSpec.describe 'Auto wizard', type: :system, set_up: false do
visit 'getting_started/auto_wizard' visit 'getting_started/auto_wizard'
expect(current_login).to eq('master@example.com') expect(current_login).to eq('admin@example.com')
end end
end end

View file

@ -29,7 +29,7 @@ RSpec.describe 'System setup process', type: :system, set_up: false, authenticat
within('.js-admin') do within('.js-admin') do
fill_in 'firstname', with: 'Test Master' fill_in 'firstname', with: 'Test Master'
fill_in 'lastname', with: 'Agent' 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', with: 'TEst1234äöüß'
fill_in 'password_confirm', 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 within('.js-admin') do
fill_in 'firstname', with: 'Test Master' fill_in 'firstname', with: 'Test Master'
fill_in 'lastname', with: 'Agent' 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', with: 'asd'
fill_in 'password_confirm', with: 'asd' fill_in 'password_confirm', with: 'asd'

View file

@ -5,7 +5,7 @@ require 'rails_helper'
RSpec.describe 'Ticket history', type: :system, time_zone: 'Europe/London' do RSpec.describe 'Ticket history', type: :system, time_zone: 'Europe/London' do
let(:group) { Group.find_by(name: 'Users') } let(:group) { Group.find_by(name: 'Users') }
let(:ticket) { create(:ticket, group: group) } 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 before do
freeze_time freeze_time

View file

@ -6,7 +6,7 @@ RSpec.describe 'Ticket zoom', type: :system do
describe 'owner auto-assignment', authenticated_as: :authenticate 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!(: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 context 'for agent disabled' do
def authenticate def authenticate

View file

@ -5,7 +5,7 @@ require 'rails_helper'
RSpec.describe 'Ticket history', type: :system, time_zone: 'Europe/London' do RSpec.describe 'Ticket history', type: :system, time_zone: 'Europe/London' do
let(:group) { Group.find_by(name: 'Users') } let(:group) { Group.find_by(name: 'Users') }
let(:customer) { create(:customer) } 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 before do
freeze_time freeze_time

View file

@ -33,7 +33,7 @@ class AaaGettingStartedTest < TestCase
) )
set( set(
css: '.js-admin input[name="email"]', css: '.js-admin input[name="email"]',
value: 'master@example.com', value: 'admin@example.com',
) )
set( set(
css: '.js-admin input[name="firstname"]', css: '.js-admin input[name="firstname"]',

View file

@ -9,7 +9,7 @@ class AgentTicketActionLevel0Test < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -206,7 +206,7 @@ class AgentTicketActionLevel0Test < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -217,7 +217,7 @@ class AgentTicketActionLevel0Test < TestCase
name: "some group #{rand(999_999_999)}", name: "some group #{rand(999_999_999)}",
member: [ member: [
{ {
login: 'master@example.com', login: 'admin@example.com',
access: 'full', access: 'full',
}, },
{ {

View file

@ -6,7 +6,7 @@ class AdminCalendarSlaTest < TestCase
def test_calendar def test_calendar
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -44,7 +44,7 @@ class AdminCalendarSlaTest < TestCase
logout logout
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
) )

View file

@ -15,7 +15,7 @@ class AdminChannelEmailTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -132,7 +132,7 @@ class AdminChannelEmailTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -6,7 +6,7 @@ class AdminDragDropToNewGroupTest < TestCase
def test_group_via_role def test_group_via_role
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -23,7 +23,7 @@ class AdminDragDropToNewGroupTest < TestCase
def test_new_group def test_new_group
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -92,7 +92,7 @@ class AdminDragDropToNewGroupTest < TestCase
watch_for(css: user_css) watch_for(css: user_css)
user_element = @browser.find_elements(css: user_css).find do |el| user_element = @browser.find_elements(css: user_css).find do |el|
el.text.strip == 'master@example.com' el.text.strip == 'admin@example.com'
end end
user_element.click user_element.click

View file

@ -8,7 +8,7 @@ class AdminObjectManagerTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -161,7 +161,7 @@ class AdminObjectManagerTest < TestCase
def test_basic_b def test_basic_b
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -385,7 +385,7 @@ class AdminObjectManagerTest < TestCase
def test_basic_c def test_basic_c
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -494,7 +494,7 @@ class AdminObjectManagerTest < TestCase
def test_that_attributes_with_references_should_have_a_disabled_delete_button def test_that_attributes_with_references_should_have_a_disabled_delete_button
@browser = instance = browser_instance @browser = instance = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -591,7 +591,7 @@ class AdminObjectManagerTest < TestCase
def test_proper_sorting_of_select_attributes def test_proper_sorting_of_select_attributes
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -675,7 +675,7 @@ class AdminObjectManagerTest < TestCase
def test_deleted_select_attributes def test_deleted_select_attributes
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -784,7 +784,7 @@ class AdminObjectManagerTest < TestCase
def test_false_boolean_attributes_gets_displayed_for_organizations def test_false_boolean_attributes_gets_displayed_for_organizations
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -860,7 +860,7 @@ class AdminObjectManagerTest < TestCase
def test_false_boolean_attributes_gets_displayed_for_users def test_false_boolean_attributes_gets_displayed_for_users
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -8,7 +8,7 @@ class AdminObjectManagerTreeSelectTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -122,7 +122,7 @@ class AdminObjectManagerTreeSelectTest < TestCase
def test_modify_tree_select_attributes def test_modify_tree_select_attributes
@browser = instance = browser_instance @browser = instance = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -8,7 +8,7 @@ class AdminOverviewTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -45,7 +45,7 @@ class AdminOverviewTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -131,7 +131,7 @@ class AdminOverviewTest < TestCase
def test_overview_toggle_out_of_office_setting def test_overview_toggle_out_of_office_setting
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -7,7 +7,7 @@ class AdminPermissionsGranularVsFullTest < TestCase
new_group_name = "permissions_test_group#{rand(99_999_999)}" new_group_name = "permissions_test_group#{rand(99_999_999)}"
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -30,7 +30,7 @@ class AdminPermissionsGranularVsFullTest < TestCase
user_css = '.user-list .js-tableBody tr td' user_css = '.user-list .js-tableBody tr td'
watch_for(css: user_css) watch_for(css: user_css)
@browser.find_elements(css: '.content.active .user-list td:first-child').each do |entry| @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 entry.click
break break

View file

@ -6,7 +6,7 @@ class AdminRoleTest < TestCase
def test_role_device def test_role_device
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -79,7 +79,7 @@ class AdminRoleTest < TestCase
logout logout
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -141,7 +141,7 @@ class AdminRoleTest < TestCase
# add admin.user to agent role # add admin.user to agent role
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -196,7 +196,7 @@ class AdminRoleTest < TestCase
# revoke admin.user # revoke admin.user
logout logout
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -234,7 +234,7 @@ class AdminRoleTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -6,7 +6,7 @@ class AgentNavigationAndTitleTest < TestCase
def test_highlight_and_title def test_highlight_and_title
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -10,7 +10,7 @@ class AgentOrganizationProfileTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -162,7 +162,7 @@ class AgentOrganizationProfileTest < TestCase
def test_org_profile_user_active_update def test_org_profile_user_active_update
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -195,7 +195,7 @@ class AgentTicketAttachmentTest < TestCase
browser2 = browser_instance browser2 = browser_instance
login( login(
browser: browser2, browser: browser2,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -6,7 +6,7 @@ class AgentTicketCreateResetCustomerSelectionTest < TestCase
def test_clear_customer def test_clear_customer
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -90,7 +90,7 @@ class AgentTicketCreateResetCustomerSelectionTest < TestCase
def test_clear_customer_use_email def test_clear_customer_use_email
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -242,7 +242,7 @@ class AgentTicketCreateResetCustomerSelectionTest < TestCase
watch_for( watch_for(
css: '.content.active .tabsSidebar .sidebar[data-tab="customer"]', css: '.content.active .tabsSidebar .sidebar[data-tab="customer"]',
value: 'master@example.com', value: 'admin@example.com',
) )
# cleanup # cleanup

View file

@ -102,7 +102,7 @@ class AgentTicketEmailReplyKeepBodyTest < TestCase
def test_full_quote def test_full_quote
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -178,7 +178,7 @@ class AgentTicketEmailReplyKeepBodyTest < TestCase
def test_full_quote_german_locale def test_full_quote_german_locale
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -16,7 +16,7 @@ class AgentTicketEmailSignatureTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -47,7 +47,7 @@ class AgentTicketEmailSignatureTest < TestCase
signature: signature_name1, signature: signature_name1,
member: [ member: [
{ {
login: 'master@example.com', login: 'admin@example.com',
access: 'full', access: 'full',
}, },
], ],
@ -59,7 +59,7 @@ class AgentTicketEmailSignatureTest < TestCase
signature: signature_name2, signature: signature_name2,
member: [ member: [
{ {
login: 'master@example.com', login: 'admin@example.com',
access: 'full', access: 'full',
}, },
], ],
@ -70,7 +70,7 @@ class AgentTicketEmailSignatureTest < TestCase
name: group_name3, name: group_name3,
member: [ member: [
{ {
login: 'master@example.com', login: 'admin@example.com',
access: 'full', access: 'full',
}, },
], ],

View file

@ -35,7 +35,7 @@ class AgentTicketLinkTest < TestCase
browser2 = browser_instance browser2 = browser_instance
login( login(
browser: browser2, browser: browser2,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -45,7 +45,7 @@ class AgentTicketMacroTest < TestCase
def test_ux_flow_next_up_stay_on_tab def test_ux_flow_next_up_stay_on_tab
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -90,7 +90,7 @@ class AgentTicketMacroTest < TestCase
def test_ux_flow_next_up_close_tab def test_ux_flow_next_up_close_tab
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -123,7 +123,7 @@ class AgentTicketMacroTest < TestCase
def test_ux_flow_next_up_advance_to_next_ticket_from_overview def test_ux_flow_next_up_advance_to_next_ticket_from_overview
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -8,7 +8,7 @@ class AgentTicketOnlineNotificationTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -242,7 +242,7 @@ class AgentTicketOnlineNotificationTest < TestCase
def test_online_notifications_render def test_online_notifications_render
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -16,7 +16,7 @@ class AgentTicketOverviewGroupByOrganizationTest < TestCase
@browser = instance = browser_instance @browser = instance = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -6,7 +6,7 @@ class AgentTicketOverviewLevel0Test < TestCase
def test_bulk_close def test_bulk_close
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -219,7 +219,7 @@ class AgentTicketOverviewLevel0Test < TestCase
def test_bulk_pending def test_bulk_pending
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -370,7 +370,7 @@ class AgentTicketOverviewLevel0Test < TestCase
def test_bulk_owner_change def test_bulk_owner_change
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -472,7 +472,7 @@ class AgentTicketOverviewLevel0Test < TestCase
def test_no_bulk_action_when_missing_change_permission def test_no_bulk_action_when_missing_change_permission
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -495,7 +495,7 @@ class AgentTicketOverviewLevel0Test < TestCase
user_edit( user_edit(
data: { data: {
login: 'master@example.com', login: 'admin@example.com',
permissions: { 1 => ['full'], permissions: { 1 => ['full'],
2 => ['full'], 2 => ['full'],
3 => ['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( login(
username: 'agent2@example.com', username: 'agent2@example.com',
password: 'test', password: 'test',
@ -612,9 +612,9 @@ class AgentTicketOverviewLevel0Test < TestCase
# cleanup # cleanup
tasks_close_all 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( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -10,7 +10,7 @@ class AgentTicketOverviewLevel1Test < TestCase
browser1 = browser_instance browser1 = browser_instance
login( login(
browser: browser1, browser: browser1,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -10,7 +10,7 @@ class AgentTicketOverviewPendingTil < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -20,7 +20,7 @@ class AgentTicketOverviewTabTest < TestCase
def test_i def test_i
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -97,7 +97,7 @@ class AgentTicketTagTest < TestCase
browser2 = browser_instance browser2 = browser_instance
login( login(
browser: browser2, browser: browser2,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -365,7 +365,7 @@ class AgentTicketTagTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -8,7 +8,7 @@ class AgentTicketTaskChangedTest < TestCase
def test_detection_of_ticket_update_after_new_attribute def test_detection_of_ticket_update_after_new_attribute
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -9,7 +9,7 @@ class AgentTicketTextModuleTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -6,7 +6,7 @@ class AgentTicketTimeAccountingTest < TestCase
def test_macro def test_macro
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -145,7 +145,7 @@ class AgentTicketTimeAccountingTest < TestCase
def test_closing_time_accounting_modal_by_clicking_background def test_closing_time_accounting_modal_by_clicking_background
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -7,7 +7,7 @@ class AgentTicketUpdate2Test < TestCase
browser1 = browser_instance browser1 = browser_instance
login( login(
browser: browser1, browser: browser1,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -9,7 +9,7 @@ class AgentTicketUpdate3Test < TestCase
browser1 = browser_instance browser1 = browser_instance
login( login(
browser: browser1, browser: browser1,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -8,7 +8,7 @@ class AgentTicketUpdate4Test < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -8,7 +8,7 @@ class AgentUserProfileTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -9,7 +9,7 @@ class ChatNoJqueryTest < TestCase
agent = browser_instance agent = browser_instance
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -176,7 +176,7 @@ class ChatNoJqueryTest < TestCase
agent = browser_instance agent = browser_instance
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -289,7 +289,7 @@ class ChatNoJqueryTest < TestCase
agent = browser_instance agent = browser_instance
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -444,7 +444,7 @@ class ChatNoJqueryTest < TestCase
agent = browser_instance agent = browser_instance
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -598,7 +598,7 @@ class ChatNoJqueryTest < TestCase
agent = browser_instance agent = browser_instance
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -670,7 +670,7 @@ class ChatNoJqueryTest < TestCase
agent = browser_instance agent = browser_instance
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -839,7 +839,7 @@ class ChatNoJqueryTest < TestCase
def disable_chat def disable_chat
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -9,7 +9,7 @@ class ChatTest < TestCase
agent = browser_instance agent = browser_instance
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -176,7 +176,7 @@ class ChatTest < TestCase
agent = browser_instance agent = browser_instance
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -289,7 +289,7 @@ class ChatTest < TestCase
agent = browser_instance agent = browser_instance
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -444,7 +444,7 @@ class ChatTest < TestCase
agent = browser_instance agent = browser_instance
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -598,7 +598,7 @@ class ChatTest < TestCase
agent = browser_instance agent = browser_instance
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -670,7 +670,7 @@ class ChatTest < TestCase
agent = browser_instance agent = browser_instance
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -839,7 +839,7 @@ class ChatTest < TestCase
def disable_chat def disable_chat
login( login(
browser: agent, browser: agent,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -8,7 +8,7 @@ class CustomerTicketCreateFieldsTest < TestCase
# create agent session and fetch object attributes # create agent session and fetch object attributes
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -17,7 +17,7 @@ class CustomerTicketCreateFieldsTest < TestCase
# re-create agent session and fetch object attributes # re-create agent session and fetch object attributes
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -209,7 +209,7 @@ class CustomerTicketCreateTest < TestCase
# verify if we still can create new tickets as agent # verify if we still can create new tickets as agent
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -231,7 +231,7 @@ class CustomerTicketCreateTest < TestCase
# disable ticket creation # disable ticket creation
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -261,7 +261,7 @@ class CustomerTicketCreateTest < TestCase
# enable ticket creation # enable ticket creation
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -10,7 +10,7 @@ class FirstStepsTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -16,7 +16,7 @@ class IntegrationCtiTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -82,7 +82,7 @@ class IntegrationCtiTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -160,7 +160,7 @@ class IntegrationCtiTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -220,7 +220,7 @@ class IntegrationCtiTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -9,7 +9,7 @@ class IntegrationSipgateTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -7,7 +7,7 @@ class IntegrationTest < TestCase
def test_sipgate def test_sipgate
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -79,7 +79,7 @@ class IntegrationTest < TestCase
def test_slack def test_slack
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -165,7 +165,7 @@ class IntegrationTest < TestCase
def test_clearbit def test_clearbit
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -255,7 +255,7 @@ class IntegrationTest < TestCase
def test_icinga def test_icinga
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -6,7 +6,7 @@ class KeyboardShortcutsTest < TestCase
def test_navigation def test_navigation
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -7,7 +7,7 @@ class MaintenanceAppVersionTest < TestCase
def test_app_version def test_app_version
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -8,7 +8,7 @@ class MaintenanceModeTest < TestCase
browser1 = browser_instance browser1 = browser_instance
login( login(
browser: browser1, browser: browser1,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -75,7 +75,7 @@ class MaintenanceModeTest < TestCase
sleep 4 sleep 4
login( login(
browser: browser1, browser: browser1,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -14,7 +14,7 @@ class MaintenanceSessionMessageTest < TestCase
browser1 = browser_instance browser1 = browser_instance
login( login(
browser: browser1, browser: browser1,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -10,7 +10,7 @@ class ManageTest < TestCase
# user management # user management
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -8,7 +8,7 @@ class MonitoringTest < TestCase
browser1 = browser_instance browser1 = browser_instance
login( login(
browser: browser1, browser: browser1,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -7,7 +7,7 @@ class PreferencesLanguageTest < TestCase
def test_lang_change def test_lang_change
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -7,7 +7,7 @@ class PreferencesPermissionCheckTest < TestCase
def test_permission_agent def test_permission_agent
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -7,7 +7,7 @@ class ReportingTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -6,7 +6,7 @@ class SettingTest < TestCase
def test_setting def test_setting
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -145,7 +145,7 @@ class SettingTest < TestCase
def test_product_name def test_product_name
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -6,7 +6,7 @@ class SwitchToUserTest < TestCase
def test_agent_user def test_agent_user
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -47,7 +47,7 @@ class SwitchToUserTest < TestCase
sleep 5 sleep 5
login = @browser.find_elements({ css: '.user-menu .user a' })[0].attribute('title') 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
end end

View file

@ -43,7 +43,7 @@ class TaskbarSessionTest < TestCase
browser1 = browser_instance browser1 = browser_instance
login( login(
browser: browser1, browser: browser1,
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -82,7 +82,7 @@ class TaskbarTaskTest < TestCase
# relogin with master - task are not viewable # relogin with master - task are not viewable
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -7,7 +7,7 @@ class TranslationTest < TestCase
def test_preferences def test_preferences
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -256,7 +256,7 @@ class TranslationTest < TestCase
def test_admin_sync def test_admin_sync
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )
@ -323,7 +323,7 @@ class TranslationTest < TestCase
def test_rerender_when_new_phrases_detected def test_rerender_when_new_phrases_detected
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -123,7 +123,7 @@ class AgentProfilePermissionsTest < TestCase
def test_agent_to_edit_admin_ticket_user_details def test_agent_to_edit_admin_ticket_user_details
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
) )

View file

@ -4667,7 +4667,7 @@ wait untill text in selector disabppears
def fetch_settings def fetch_settings
url = URI.parse(browser_url) url = URI.parse(browser_url)
req = Net::HTTP::Get.new("#{browser_url}/api/v1/settings/") 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| res = Net::HTTP.start(url.host, url.port) do |http|
http.request(req) http.request(req)
@ -4692,7 +4692,7 @@ wait untill text in selector disabppears
url = URI.parse(browser_url) url = URI.parse(browser_url)
req = Net::HTTP::Put.new("#{browser_url}/api/v1/settings/#{id}") req = Net::HTTP::Put.new("#{browser_url}/api/v1/settings/#{id}")
req['Content-Type'] = 'application/json' 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 req.body = { 'state_current' => { 'value' => value } }.to_json
res = Net::HTTP.start(url.host, url.port) do |http| res = Net::HTTP.start(url.host, url.port) do |http|
http.request(req) http.request(req)

View file

@ -10,7 +10,7 @@ class AaaAutoWizardBaseSetupTest < TestCase
watch_for( watch_for(
css: '.user-menu .user a', css: '.user-menu .user a',
attribute: 'title', attribute: 'title',
value: 'master@example.com', value: 'admin@example.com',
timeout: 14, timeout: 14,
) )
end end

View file

@ -25,7 +25,7 @@ class EmailPostmasterToSender < ActiveSupport::TestCase
@folder = "postmaster_to_sender_#{@test_id}" @folder = "postmaster_to_sender_#{@test_id}"
if ENV['MAIL_SERVER_EMAIL'].blank? 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 end
@sender_email_address = ENV['MAIL_SERVER_EMAIL'] @sender_email_address = ENV['MAIL_SERVER_EMAIL']

View file

@ -24,7 +24,7 @@ class IntegrationIdoitTest < TestCase
@browser = browser_instance @browser = browser_instance
login( login(
username: 'master@example.com', username: 'admin@example.com',
password: 'test', password: 'test',
url: browser_url, url: browser_url,
auto_wizard: true, auto_wizard: true,
@ -95,7 +95,7 @@ class IntegrationIdoitTest < TestCase
# reselect the customer and verify if object is still shown in sidebar # reselect the customer and verify if object is still shown in sidebar
ticket_customer_select( ticket_customer_select(
css: '.content.active .newTicket', css: '.content.active .newTicket',
customer: 'master', customer: 'admin',
) )
watch_for( watch_for(