Skip to content

Commit

Permalink
Maintenance: Removed unneeded authenticated: true meta attribute for …
Browse files Browse the repository at this point in the history
…system tests which is the default.
  • Loading branch information
thorsteneckel committed Jul 22, 2021
1 parent eea67c1 commit 9c7ddb7
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion spec/system/admin/knowledge_base/public_menu_spec.rb
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion spec/system/cti_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/system/dashboard_spec.rb
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion spec/system/knowledge_base/locale/answer/edit_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/system/knowledge_base_public/editor_search_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/system/knowledge_base_public/editor_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/system/profile/devices_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/system/search_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/system/system/object_manager_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/system/ticket/history_spec.rb
Expand Up @@ -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') }
Expand Down
2 changes: 1 addition & 1 deletion spec/system/ticket/inserting_knowledge_base_answer_spec.rb
Expand Up @@ -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) }
Expand Down
2 changes: 1 addition & 1 deletion spec/system/ticket/view_spec.rb
Expand Up @@ -89,7 +89,7 @@
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'

Expand Down
2 changes: 1 addition & 1 deletion spec/system/user/history_spec.rb
Expand Up @@ -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') }
Expand Down

0 comments on commit 9c7ddb7

Please sign in to comment.