Commit ff9b99ca authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '45575-test-invalid-characters-signup' into 'master'

Add test for "Bug: When creating an account with invalid characters the error is "Username already taken" not "Invalid characters used""

See merge request gitlab-org/gitlab-ce!20124
parents dd71b5a2 59cb05c8
......@@ -40,6 +40,15 @@ describe 'Signup' do
expect(find('.username')).to have_css '.gl-field-error-outline'
end
it 'shows an error message on submit if the username contains special characters' do
fill_in 'new_user_username', with: 'new$user!username'
wait_for_requests
click_button "Register"
expect(page).to have_content("Please create a username with only alphanumeric characters.")
end
end
context 'with no errors' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment