Skip to content

Commit

Permalink
chore(e2e): test for resend code with forgot password (#4795)
Browse files Browse the repository at this point in the history
* chore: adding a test for resend code with forgot password

* formatting

* removing extra line

* remove check for code input being disabled

* add other tests back
  • Loading branch information
esauerbo authored Jan 4, 2024
1 parent e023840 commit e6dff86
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,18 @@ Feature: Reset Password
Then I see "Password must have lower case letters"
Then I see "Password must have at least 8 characters"
Then I confirm "Password must have numbers" error is accessible in new password field

@react @vue @angular @react-native
Scenario: Forgot Password with resend code
When I type my "username" with status "CONFIRMED"
Then I intercept '{ "headers": { "X-Amz-Target": "AWSCognitoIdentityProviderService.ForgotPassword" } }' with fixture "reset-password"
Then I click the "Send code" button
Then I will be redirected to the confirm forgot password page
Then I click the "Resend Code" button
Then I see "Code *"
Then I type a valid code
Then I type my new password
Then I confirm my password
Then I intercept '{ "headers": { "X-Amz-Target": "AWSCognitoIdentityProviderService.ConfirmForgotPassword" } }' with fixture "confirm-reset-password"
Then I click the 'Submit' button
Then I see "Sign In"

0 comments on commit e6dff86

Please sign in to comment.