Commit 59cb05c8 authored by Sanad Liaquat's avatar Sanad Liaquat

Adds test to cover the fix in #45575

parent 2bac2918
...@@ -40,6 +40,15 @@ describe 'Signup' do ...@@ -40,6 +40,15 @@ describe 'Signup' do
expect(find('.username')).to have_css '.gl-field-error-outline' expect(find('.username')).to have_css '.gl-field-error-outline'
end 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 end
context 'with no errors' do 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