mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
34 lines
1.4 KiB
Gherkin
34 lines
1.4 KiB
Gherkin
@customer_login
|
|
Feature: Resetting a password validation
|
|
In order to avoid making mistakes when resetting password
|
|
As a Visitor
|
|
I need to be prevented from making mistakes in my address email
|
|
|
|
Background:
|
|
Given the store operates on a single channel in "United States"
|
|
And there is a user "goodman@example.com" identified by "heisenberg"
|
|
|
|
@ui @api
|
|
Scenario: Trying to reset password without specifying email
|
|
When I want to reset password
|
|
And I do not specify the email
|
|
And I try to reset it
|
|
Then I should be notified that the email is required
|
|
|
|
@ui @api
|
|
Scenario: Trying to reset password with a wrong confirmation password
|
|
Given I have already received a resetting password email
|
|
When I follow link on my email to reset my password
|
|
And I specify my new password as "newp@ssw0rd"
|
|
And I confirm my new password as "wrongp@ssw0rd"
|
|
And I try to reset it
|
|
Then I should be notified that the entered passwords do not match
|
|
|
|
@ui @api
|
|
Scenario: Trying to reset my password with a too short password
|
|
Given I have already received a resetting password email
|
|
When I follow link on my email to reset my password
|
|
And I specify my new password as "fu"
|
|
And I confirm my new password as "fu"
|
|
And I try to reset it
|
|
Then I should be notified that the password should be at least 4 characters long
|