Skip to content

Instantly share code, notes, and snippets.

@wlee221
Created December 13, 2022 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wlee221/6cffbab71d82940cf30e534e5539da28 to your computer and use it in GitHub Desktop.
Save wlee221/6cffbab71d82940cf30e534e5539da28 to your computer and use it in GitHub Desktop.
Feature: Reset Password
...
(adding a new scenario below:)
Scenario:
When I type my "username" with status "CONFIRMED"
And I intercept '{ "headers": { "X-Amz-Target": "AWSCognitoIdentityProviderService.ForgotPassword" } }' with fixture "reset-password"
And I click the "Send code" button
Then I will be redirected to the confirm forgot password page
And I see "Code"
Then I type a valid code
And I type an invalid wrong complexity password
And I confirm my password
Then I see "Password must have numbers"
Then I see "Password must have special characters"
Then I see "Password must have upper case letters"
Then I see "Password must have at least 8 characters"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment