diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-09-23 11:15:07 +0200 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-10-15 08:27:24 +0200 |
commit | 83fb1190205c3d1fbe16a684794ed1af10ed1bff (patch) | |
tree | e77f83fb508edf3f900ceb5031c3fc69d8ee7e59 /spec/features/users_spec.rb | |
parent | 00bfb645e16b24ce929211bf5080aa3083f8543b (diff) | |
download | gitlab-ce-83fb1190205c3d1fbe16a684794ed1af10ed1bff.tar.gz |
Get tests passing.
Diffstat (limited to 'spec/features/users_spec.rb')
-rw-r--r-- | spec/features/users_spec.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/features/users_spec.rb b/spec/features/users_spec.rb index 63743169302..73d6fb6b651 100644 --- a/spec/features/users_spec.rb +++ b/spec/features/users_spec.rb @@ -61,16 +61,17 @@ feature 'Users', feature: true, js: true do before(:each) do visit new_user_session_path click_link 'Register' - @username_field = find '.username' + @username_form_group = find '.username' + @username_field = find '#new_user_username' end - scenario 'shows an error border if the username already exists' do + scenario 'shows an error border if the username already exists', focus: true do fill_in username_input, with: user.username wait_for_ajax - expect(@username_field).to have_css '.gl-field-error-outline' + expect(@username_form_group).to have_css '.gl-field-error-outline' end - scenario 'doesn\'t show an error border if the username is available' do + scenario 'doesn\'t show an error border if the username is available', focus: true do fill_in username_input, with: 'new-user' wait_for_ajax expect(@username_field).not_to have_css '.gl-field-error-outline' |