Sylius/features/account/resetting_password_validation.feature
2021-03-03 10:59:58 +01:00

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