agents_spec.rb 568 B

1234567891011121314151617181920
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe 'Getting Started > Agents', type: :system do
  4. it 'shows password strength error' do
  5. visit 'getting_started/agents'
  6. fill_in 'firstname', with: 'Test'
  7. fill_in 'lastname', with: 'Test'
  8. fill_in 'email', with: 'admin@example.com'
  9. click '.btn--success'
  10. within '.js-danger' do
  11. expect(page)
  12. .to have_text("Email address 'admin@example.com' is already used for other user.")
  13. end
  14. end
  15. end