Add missing article to password reset form steps
This commit is contained in:
parent
907514b43c
commit
7f04e42608
4 changed files with 14 additions and 14 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue