From 4ef0c19ce30dcb54166d23e793cff68e220b8db9 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sat, 19 Aug 2017 12:30:35 +0200 Subject: [PATCH] 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 --- features/support/user_cuke_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/support/user_cuke_helpers.rb b/features/support/user_cuke_helpers.rb index abf5e5e6e..b7014b0ac 100644 --- a/features/support/user_cuke_helpers.rb +++ b/features/support/user_cuke_helpers.rb @@ -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')