Maintenance: Removed unneeded authenticated: true meta attribute for system tests which is the default.

This commit is contained in:
Thorsten Eckel 2021-07-22 16:03:33 +02:00
parent eea67c1774
commit 9c7ddb7a9d
13 changed files with 13 additions and 13 deletions

View file

@ -3,7 +3,7 @@
require 'rails_helper'
# https://github.com/zammad/zammad/issues/266
RSpec.describe 'Admin Panel > Knowledge Base > Public Menu', type: :system, authenticated_as: true do
RSpec.describe 'Admin Panel > Knowledge Base > Public Menu', type: :system do
include_context 'basic Knowledge Base'
include_context 'Knowledge Base menu items'

View file

@ -2,7 +2,7 @@
require 'rails_helper'
RSpec.describe 'Caller log', type: %i[system request], authenticated_as: true do # rubocop:disable RSpec/DescribeClass
RSpec.describe 'Caller log', type: %i[system request] do # rubocop:disable RSpec/DescribeClass
let(:admin) do
create(:admin, groups: Group.all)
end

View file

@ -2,7 +2,7 @@
require 'rails_helper'
RSpec.describe 'Dashboard', type: :system, authenticated_as: true do
RSpec.describe 'Dashboard', type: :system do
it 'shows default widgets' do
visit 'dashboard'

View file

@ -2,7 +2,7 @@
require 'rails_helper'
RSpec.describe 'Knowledge Base Locale Answer Edit', type: :system, authenticated_as: true do
RSpec.describe 'Knowledge Base Locale Answer Edit', type: :system do
include_context 'basic Knowledge Base'
before do

View file

@ -2,7 +2,7 @@
require 'rails_helper'
RSpec.describe 'Public Knowledge Base for guest search', type: :system, authenticated_as: true, searchindex: true do
RSpec.describe 'Public Knowledge Base for guest search', type: :system, searchindex: true do
include_context 'basic Knowledge Base'
before do

View file

@ -2,7 +2,7 @@
require 'rails_helper'
RSpec.describe 'Public Knowledge Base for editor', type: :system, authenticated_as: true do
RSpec.describe 'Public Knowledge Base for editor', type: :system do
include_context 'basic Knowledge Base'
before do

View file

@ -2,7 +2,7 @@
require 'rails_helper'
RSpec.describe 'Profile > Devices', type: :system, authenticated_as: true do
RSpec.describe 'Profile > Devices', type: :system do
subject!(:device) { create(:user_device, user_id: User.find_by(login: 'master@example.com').id) }
it 'allows to remove device' do

View file

@ -2,7 +2,7 @@
require 'rails_helper'
RSpec.describe 'Search', type: :system, authenticated: true, searchindex: true do
RSpec.describe 'Search', type: :system, searchindex: true do
before do
configure_elasticsearch(required: true, rebuild: true)
end

View file

@ -3,7 +3,7 @@
require 'rails_helper'
# https://github.com/zammad/zammad/issues/266
RSpec.describe 'Admin Panel > Objects', type: :system, authenticated_as: true do
RSpec.describe 'Admin Panel > Objects', type: :system do
before do
visit '/#system/object_manager'
end

View file

@ -2,7 +2,7 @@
require 'rails_helper'
RSpec.describe 'Ticket history', type: :system, authenticated_as: true, time_zone: 'Europe/London' do
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') }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
RSpec.describe 'inserting Knowledge Base answer', type: :system, authenticated_as: true, searchindex: true do
RSpec.describe 'inserting Knowledge Base answer', type: :system, searchindex: true do
include_context 'basic Knowledge Base'
let(:field) { find(:richtext) }

View file

@ -89,7 +89,7 @@ RSpec.describe 'Ticket views', type: :system do
end
end
it 'can use macro to create article', authenticated_as: true do
it 'can use macro to create article' do
refresh
visit '#ticket/view/all_open'

View file

@ -2,7 +2,7 @@
require 'rails_helper'
RSpec.describe 'Ticket history', type: :system, authenticated_as: true, time_zone: 'Europe/London' do
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') }