trabajo-afectivo/spec/system/signup_spec.rb

22 lines
627 B
Ruby
Raw Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
require 'rails_helper'
RSpec.describe 'Signup', type: :system, authenticated_as: false do
it 'shows password strength error' do
visit 'signup'
fill_in 'firstname', with: 'Test'
fill_in 'lastname', with: 'Test'
fill_in 'email', with: 'test@example.com'
fill_in 'password', with: 'asdasdasdasd'
fill_in 'password_confirm', with: 'asdasdasdasd'
click '.js-submit'
within '.js-danger' do
expect(page).to have_text('Invalid password,').and(have_no_text('["'))
end
end
end