58857af5ca
- Add password-reset.feature with 4 scenarios - Add step definition for password reset page assertion - Tests access page, valid email request, invalid email, and empty field
33 lines
1.2 KiB
Gherkin
33 lines
1.2 KiB
Gherkin
Feature: Password Reset
|
|
As a user who forgot my password
|
|
I want to reset my password
|
|
So that I can regain access to my account
|
|
|
|
@happy-path @authentication @issue-10
|
|
Scenario: User can access password reset page
|
|
Given I am on the login page
|
|
When I click the "Forgot password?" link
|
|
Then I should be on the password reset page
|
|
And I should see "Reset Password"
|
|
|
|
@happy-path @authentication @issue-10 @wip
|
|
Scenario: User requests password reset with valid email
|
|
Given I am on the password reset page
|
|
When I fill in "email" with "existing-user@example.com"
|
|
And I click the "Send Reset Link" button
|
|
Then I should see "Password reset link sent"
|
|
And I should see "Check your email"
|
|
|
|
@negative-test @authentication @issue-10 @wip
|
|
Scenario: User requests password reset with invalid email
|
|
Given I am on the password reset page
|
|
When I fill in "email" with "nonexistent@example.com"
|
|
And I click the "Send Reset Link" button
|
|
Then I should see an error message
|
|
|
|
@negative-test @authentication @issue-10 @wip
|
|
Scenario: User submits empty email field
|
|
Given I am on the password reset page
|
|
When I click the "Send Reset Link" button
|
|
Then I should see "email is required" error
|