2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2020-10-06 10:34:36 +00:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe 'Getting Started > Agents', type: :system do
|
|
|
|
it 'shows password strength error' do
|
|
|
|
visit 'getting_started/agents'
|
|
|
|
|
|
|
|
fill_in 'firstname', with: 'Test'
|
|
|
|
fill_in 'lastname', with: 'Test'
|
2021-08-17 12:10:02 +00:00
|
|
|
fill_in 'email', with: 'admin@example.com'
|
2020-10-06 10:34:36 +00:00
|
|
|
|
|
|
|
click '.btn--success'
|
|
|
|
|
|
|
|
within '.js-danger' do
|
|
|
|
expect(page)
|
2021-08-17 12:10:02 +00:00
|
|
|
.to have_text("Email address 'admin@example.com' is already used for other user.")
|
2020-10-06 10:34:36 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|