Add missing article to password reset form steps

This commit is contained in:
Jonne Haß 2015-10-28 16:38:28 +01:00
parent 907514b43c
commit 7f04e42608
4 changed files with 14 additions and 14 deletions

View file

@ -27,8 +27,8 @@ Feature: Change password
And I submit forgot password form And I submit forgot password form
Then I should see "You will receive an email with instructions" 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 follow the "Change my password" link from the last sent email
When I fill out reset password form with "supersecret" and "supersecret" When I fill out the password reset form with "supersecret" and "supersecret"
And I submit reset password form And I submit the password reset form
Then I should be on the stream page Then I should be on the stream page
And I sign out manually And I sign out manually
And I sign in manually as "georges_abitbol" with password "supersecret" 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" When I fill out forgot password form with "forgetful@users.net"
And I submit forgot password form And I submit forgot password form
When I follow the "Change my password" link from the last sent email 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" And I press "Change my password"
Then I should be on the user password page Then I should be on the user password page
And I should see "Password is too short" And I should see "Password is too short"

View file

@ -29,8 +29,8 @@ Feature: Change password
And I submit forgot password form And I submit forgot password form
Then I should see "You will receive an email with instructions" 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 follow the "Change my password" link from the last sent email
And I fill out reset password form with "supersecret" and "supersecret" And I fill out the password reset form with "supersecret" and "supersecret"
And I submit reset password form And I submit the password reset form
Then I should be on the stream page Then I should be on the stream page
When I sign out manually on the mobile website When I sign out manually on the mobile website
And I sign in manually as "georges_abitbol" with password "supersecret" 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" When I fill out forgot password form with "forgetful@users.net"
And I submit forgot password form And I submit forgot password form
And I follow the "Change my password" link from the last sent email 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" And I press "Change my password"
Then I should be on the user password page Then I should be on the user password page
And I should see "Password is too short" And I should see "Password is too short"

View file

@ -57,12 +57,12 @@ When /^I submit forgot password form$/ do
submit_forgot_password_form submit_forgot_password_form
end end
When /^I fill out reset password form with "([^"]*)" and "([^"]*)"$/ do |new_pass,confirm_pass| When /^I fill out the password reset form with "([^"]*)" and "([^"]*)"$/ do |new_pass,confirm_pass|
fill_reset_password_form(new_pass, confirm_pass) fill_password_reset_form(new_pass, confirm_pass)
end end
When /^I submit reset password form$/ do When /^I submit the password reset form$/ do
submit_reset_password_form submit_password_reset_form
end end
When /^I (?:log|sign) out$/ do When /^I (?:log|sign) out$/ do

View file

@ -98,14 +98,14 @@ module UserCukeHelpers
find("#new_user input.btn").click find("#new_user input.btn").click
end end
# fill the reset password form # fill the password reset form
def fill_reset_password_form(new_pass, confirm_pass) def fill_password_reset_form(new_pass, confirm_pass)
fill_in 'user_password', :with => new_pass fill_in 'user_password', :with => new_pass
fill_in 'user_password_confirmation', :with => confirm_pass fill_in 'user_password_confirmation', :with => confirm_pass
end end
# submit reset password form # submit the password reset form
def submit_reset_password_form def submit_password_reset_form
find(".btn").click find(".btn").click
end end