Skip to content
Extraits de code Groupes Projets
Valider 7f04e426 rédigé par Jonne Haß's avatar Jonne Haß
Parcourir les fichiers

Add missing article to password reset form steps

parent 907514b4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -27,8 +27,8 @@ Feature: Change password
And I submit forgot password form
Then I should see "You will receive an email with instructions"
When I follow the "Change my password" link from the last sent email
When I fill out reset password form with "supersecret" and "supersecret"
And I submit reset password form
When I fill out the password reset form with "supersecret" and "supersecret"
And I submit the password reset form
Then I should be on the stream page
And I sign out manually
And I sign in manually as "georges_abitbol" with password "supersecret"
......@@ -40,7 +40,7 @@ Feature: Change password
When I fill out forgot password form with "forgetful@users.net"
And I submit forgot password form
When I follow the "Change my password" link from the last sent email
When I fill out reset password form with "too" and "short"
When I fill out the password reset form with "too" and "short"
And I press "Change my password"
Then I should be on the user password page
And I should see "Password is too short"
......
......@@ -29,8 +29,8 @@ Feature: Change password
And I submit forgot password form
Then I should see "You will receive an email with instructions"
When I follow the "Change my password" link from the last sent email
And I fill out reset password form with "supersecret" and "supersecret"
And I submit reset password form
And I fill out the password reset form with "supersecret" and "supersecret"
And I submit the password reset form
Then I should be on the stream page
When I sign out manually on the mobile website
And I sign in manually as "georges_abitbol" with password "supersecret" on the mobile website
......@@ -42,7 +42,7 @@ Feature: Change password
When I fill out forgot password form with "forgetful@users.net"
And I submit forgot password form
And I follow the "Change my password" link from the last sent email
And I fill out reset password form with "too" and "short"
And I fill out the password reset form with "too" and "short"
And I press "Change my password"
Then I should be on the user password page
And I should see "Password is too short"
......
......@@ -57,12 +57,12 @@ When /^I submit forgot password form$/ do
submit_forgot_password_form
end
When /^I fill out reset password form with "([^"]*)" and "([^"]*)"$/ do |new_pass,confirm_pass|
fill_reset_password_form(new_pass, confirm_pass)
When /^I fill out the password reset form with "([^"]*)" and "([^"]*)"$/ do |new_pass,confirm_pass|
fill_password_reset_form(new_pass, confirm_pass)
end
When /^I submit reset password form$/ do
submit_reset_password_form
When /^I submit the password reset form$/ do
submit_password_reset_form
end
When /^I (?:log|sign) out$/ do
......
......@@ -98,14 +98,14 @@ module UserCukeHelpers
find("#new_user input.btn").click
end
# fill the reset password form
def fill_reset_password_form(new_pass, confirm_pass)
# fill the password reset form
def fill_password_reset_form(new_pass, confirm_pass)
fill_in 'user_password', :with => new_pass
fill_in 'user_password_confirmation', :with => confirm_pass
end
# submit reset password form
def submit_reset_password_form
# submit the password reset form
def submit_password_reset_form
find(".btn").click
end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter