out_of_office_spec.rb 495 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe 'Profile > Out of Office', type: :system do
  4. before do
  5. visit 'profile/out_of_office'
  6. end
  7. it 'does find agents' do
  8. find(:css, '.js-objectSelect').send_keys('Agent')
  9. expect(page).to have_text('Agent 1 Test')
  10. end
  11. it 'does not find customers' do
  12. find(:css, '.js-objectSelect').send_keys('Nicole')
  13. expect(page).to have_no_text('Nicole Braun')
  14. end
  15. end