More SHA-1 hashes handling scenarios using outlines

This commit is contained in:
Jan Stępień 2011-09-05 22:54:40 +02:00
parent ad1f3b5862
commit db77225ff7

View file

@ -9,14 +9,26 @@ Feature: Handling users with deprecated passwords hashes
| new_hash_user | first_secret bcrypt |
| old_hash_user | another_secret sha1 |
Scenario: A user with SHA1 password
Scenario Outline: A user with SHA1 password
Given I have logged in as "old_hash_user" with password "another_secret"
When I go to the homepage
When I go to the <name> page
Then I should be redirected to the change password page
And I should see "You have to reset your password"
When I change my password to "newer_better_password"
Then I should be redirected to the preference page
Examples:
| name |
| home |
| preferences |
| notes |
| tickler |
Scenario: A user with SHA1 password goes straight to the change password page
Given I have logged in as "old_hash_user" with password "another_secret"
When I go to the change password page
Then I should be on the change password page
Scenario: A user with BCrypt password
Given I have logged in as "new_hash_user" with password "first_secret"
When I go to the homepage