Change order of fields in fill_in_new_user_form

The user_email is the first field anyway, and login form as a
user_username field too, so it maybe happens that we already fill in the
user_username filed there before page load finished.

closes #7556
This commit is contained in:
Benjamin Neff 2017-08-19 12:30:35 +02:00
parent 50dd7b03d7
commit 4ef0c19ce3
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -69,8 +69,8 @@ module UserCukeHelpers
def fill_in_new_user_form
@username = "ohai"
fill_in('user_username', with: @username)
fill_in('user_email', with: "#{@username}@example.com")
fill_in('user_username', with: @username)
fill_in('user_password', with: 'secret')
fill_in('user_password_confirmation', with: 'secret')