Skip to content

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 mainProfile data.
  • 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

  1. Read the pending banner. Expected: it shows "Pending for verification for email .".
  2. Capture the verification link from the MailSlurp inbox. Expected: the link is non-null.
  3. 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?".
  4. Click Yes to confirm. Expected: a success confirmation toast appears and the pending email change is dropped.
  5. Open the previously captured verification link in the browser. Expected: the app shows an "invalid verification" message rather than completing the email change.
  • Spec: playwright/tests/integration/personal.info.spec.ts (line 246)