409 — should cancel process and try to verify cancelled token¶
Description¶
Verifies that cancelling a pending email change invalidates the verification link that was already sent — visiting it afterwards shows an invalid-verification error instead of completing the change.
Preconditions¶
- A fresh user is signed in with the seeded
mainProfiledata. - A new MailSlurp inbox has been created and the email-change flow has been started against it (Save → Yes), so the account is in the pending state.
- The Account Settings → Personal Info page is open.
Steps¶
- Read the pending banner. Expected: it shows "Pending for verification for email
.". - Capture the verification link from the MailSlurp inbox. Expected: the link is non-null.
- Click "Cancel the verification process". Expected: a "Cancel update of email address?" dialog appears with the text "Are you sure you want to cancel the email update process?".
- Click Yes to confirm. Expected: a success confirmation toast appears and the pending email change is dropped.
- Open the previously captured verification link in the browser. Expected: the app shows an "invalid verification" message rather than completing the email change.
Related¶
- Spec:
playwright/tests/integration/personal.info.spec.ts(line 246)