mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-12 23:35:52 +00:00
32 lines
1.1 KiB
Gherkin
32 lines
1.1 KiB
Gherkin
Feature: Change password
|
|
As a user
|
|
I want to change my password in my settings
|
|
For security, e.g. if I exposed my password by accident
|
|
|
|
Login via email and password is a well-known authentication procedure and you
|
|
can assure to the server that you are who you claim to be. Either if you
|
|
exposed your password by acccident and you want to invalidate the exposed
|
|
password or just out of an good habit, you want to change your password.
|
|
|
|
Background:
|
|
Given my user account has the following login credentials:
|
|
| email | password |
|
|
| user@example.org | exposed |
|
|
And I am logged in
|
|
|
|
Scenario: Change my password
|
|
Given I am on the "settings" page
|
|
And I click on "Security"
|
|
When I fill the password form with:
|
|
| Your old password | exposed |
|
|
| Your new passsword | secure |
|
|
| Confirm new password | secure |
|
|
And submit the form
|
|
And I see a success message:
|
|
"""
|
|
Password successfully changed!
|
|
"""
|
|
And I log out through the menu in the top right corner
|
|
Then I cannot login anymore with password "exposed"
|
|
But I can login successfully with password "secure"
|