21 lines
560 B
Ruby
21 lines
560 B
Ruby
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
||
|
|
||
|
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
|