2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-08-25 13:08:05 +00:00
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe 'Profile > Out of Office', type: :system do
|
|
|
|
before do
|
|
|
|
visit 'profile/out_of_office'
|
|
|
|
sleep 3 # wait for popover killer to pass
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'does find agents' do
|
|
|
|
find(:css, '.js-objectSelect').send_keys('Agent')
|
|
|
|
expect(page).to have_text('Agent 1 Test', wait: 20)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'does not find customers' do
|
|
|
|
find(:css, '.js-objectSelect').send_keys('Nicole')
|
|
|
|
expect(page).to have_no_text('Nicole Braun', wait: 20)
|
|
|
|
end
|
|
|
|
end
|