Sha256: a7173f34468c2eb3e4c71818ec6b47a081e7188822661fccca2cf43347ec6cf5
Contents?: true
Size: 1.85 KB
Versions: 3
Compression:
Stored size: 1.85 KB
Contents
Feature: change the current user's password As an logged in user I want to change my password Background: Given I am logged in as a user Scenario: Visit change my password When I am on the user pswd change page Then I should see the view "users/pswd_change_form" Then the "Old Password" field should be required Then the "Old Password" field should be blank Then the "New Password" field should be required Then the "New Password" field should be blank Then the "Confirm New Password" field should be required Then the "Confirm New Password" field should be blank Then I should see the "Change Your Details" link to the user change page Then I should see the "Cancel" link to the user details page Then I should see the "Update" button Scenario: I enter invalid old password Given I am on the user pswd change page Given I fill in "Old Password" with "wrong" Given I fill in "New Password" with "new_password" Given I fill in "Confirm New Password" with "new_password" When I press "Update" Then I should see the view "users/pswd_change_form" Then the error message should be "Invalid Old Password" Scenario: I enter a wrong confirm new password Given I am on the user pswd change page Given I fill in "Old Password" with "mock_password" Given I fill in "New Password" with "new_password" Given I fill in "Confirm New Password" with "new_password_wrong" When I press "Update" Then I should see the view "users/pswd_change_form" Then the error message should be "Could not change password" Scenario: I enter a a new password Given I am on the user pswd change page Given I fill in "Old Password" with "mock_password" Given I fill in "New Password" with "new_password" Given I fill in "Confirm New Password" with "new_password" When I press "Update" Then I should see the view "users/details" Then the success message should be "Password Changed"
Version data entries
3 entries across 3 versions & 1 rubygems