agents_spec.rb 493 B

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