fix cucumber failure
This commit is contained in:
parent
1b6ae9406e
commit
6b12c55278
2 changed files with 8 additions and 2 deletions
|
|
@ -6,7 +6,8 @@ Feature: Change password
|
||||||
And I click on my name in the header
|
And I click on my name in the header
|
||||||
And I follow "account settings"
|
And I follow "account settings"
|
||||||
Then I should be on my account settings page
|
Then I should be on my account settings page
|
||||||
When I fill in "user_password" with "newsecret"
|
When I put in my password in "user_current_password"
|
||||||
|
And I fill in "user_password" with "newsecret"
|
||||||
And I fill in "user_password_confirmation" with "newsecret"
|
And I fill in "user_password_confirmation" with "newsecret"
|
||||||
And I press "Change Password"
|
And I press "Change Password"
|
||||||
Then I should see "Password Changed"
|
Then I should see "Password Changed"
|
||||||
|
|
|
||||||
|
|
@ -30,3 +30,8 @@ When /^I sign in with password "([^"]*)"$/ do |password|
|
||||||
Given 'I am signed in'
|
Given 'I am signed in'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
When /^I put in my password in "([^"]*)"$/ do |field|
|
||||||
|
When %(I fill in "#{field}" with "#{@me.password}")
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue