trabajo-afectivo/spec/system/getting_started/agents_spec.rb

21 lines
567 B
Ruby
Raw Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
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'
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.")
end
end
end