signup_spec.rb 475 B

1234567891011121314151617
  1. require 'rails_helper'
  2. RSpec.describe 'Signup', type: :system, authenticated_as: false do
  3. it 'shows password strength error' do
  4. visit 'signup'
  5. fill_in 'firstname', with: 'Test'
  6. fill_in 'lastname', with: 'Test'
  7. fill_in 'email', with: 'test@example.com'
  8. fill_in 'password', with: 'badpw'
  9. fill_in 'password_confirm', with: 'badpw'
  10. click '.js-submit'
  11. expect(page).to have_text 'Invalid password,'
  12. end
  13. end