2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2020-10-30 07:59:32 +00:00
|
|
|
require 'rails_helper'
|
|
|
|
require 'system/examples/pagination_examples'
|
|
|
|
|
|
|
|
RSpec.describe 'Manage > Groups', type: :system do
|
|
|
|
context 'ajax pagination' do
|
|
|
|
include_examples 'pagination', model: :group, klass: Group, path: 'manage/groups'
|
|
|
|
end
|
2021-08-24 14:37:19 +00:00
|
|
|
|
|
|
|
context "Issue 2544 - Can't remove auto assignment timeout" do
|
|
|
|
before do
|
|
|
|
visit '/#manage/groups'
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'is possible to reset the assignment timeout of a group' do
|
|
|
|
find('td', text: 'Users').click
|
|
|
|
fill_in 'Assignment Timeout', with: '30'
|
|
|
|
find('button', text: 'Submit').click
|
|
|
|
expect(Group.find_by(name: 'Users').assignment_timeout).to eq(30)
|
|
|
|
|
|
|
|
find('td', text: 'Users').click
|
|
|
|
fill_in 'Assignment Timeout', with: ''
|
|
|
|
find('button', text: 'Submit').click
|
|
|
|
expect(Group.find_by(name: 'Users').assignment_timeout).to be nil
|
|
|
|
end
|
|
|
|
end
|
2020-10-30 07:59:32 +00:00
|
|
|
end
|