mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-22 02:00:12 +01:00
More SHA-1 hashes handling scenarios using outlines
This commit is contained in:
parent
ad1f3b5862
commit
db77225ff7
1 changed files with 14 additions and 2 deletions
|
|
@ -9,14 +9,26 @@ Feature: Handling users with deprecated passwords hashes
|
||||||
| new_hash_user | first_secret bcrypt |
|
| new_hash_user | first_secret bcrypt |
|
||||||
| old_hash_user | another_secret sha1 |
|
| 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"
|
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
|
Then I should be redirected to the change password page
|
||||||
And I should see "You have to reset your password"
|
And I should see "You have to reset your password"
|
||||||
When I change my password to "newer_better_password"
|
When I change my password to "newer_better_password"
|
||||||
Then I should be redirected to the preference page
|
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
|
Scenario: A user with BCrypt password
|
||||||
Given I have logged in as "new_hash_user" with password "first_secret"
|
Given I have logged in as "new_hash_user" with password "first_secret"
|
||||||
When I go to the homepage
|
When I go to the homepage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue