admin_spec.rb 678 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe 'Getting Started > Admin', authenticated_as: false, set_up: false, type: :system do
  4. it 'shows password strength error' do
  5. visit 'getting_started/admin'
  6. fill_in 'firstname', with: 'Test'
  7. fill_in 'lastname', with: 'Test'
  8. fill_in 'email', with: 'test@example.com'
  9. fill_in 'password', with: 'asdasdasdasd'
  10. fill_in 'password_confirm', with: 'asdasdasdasd'
  11. click '.btn--success'
  12. within '.js-danger' do
  13. expect(page).to have_text('Invalid password,').and(have_no_text('["'))
  14. end
  15. end
  16. end