Skip to content

407 — should change email

Description

Verifies the full email-change flow: changing the email shows a confirmation dialog, puts the account into a pending state, and the verification link emailed to the new address completes the swap.

Preconditions

  • A fresh user is signed in with the seeded mainProfile data.
  • A new MailSlurp inbox has been created to receive the verification email.
  • The Account Settings → Personal Info page is open.

Steps

  1. Replace the Email field with the new MailSlurp address and click Save. Expected: an "Update email address?" dialog appears asking to confirm the change from the old to the new address.
  2. Click Yes to confirm. Expected: a "Saved" confirmation toast appears, and a pending banner reads "Pending for verification for email ." with the prompt "Haven't received the verification email?".
  3. Open the MailSlurp inbox and extract the verification link from the most recent message. Expected: a non-null verification link is found.
  4. Navigate to the verification link. Expected: the app shows a successful-login confirmation.
  5. Open Account Settings → Personal Info again. Expected: the Email field shows the new MailSlurp address, and the "Pending for verification" banner is gone.
  • Spec: playwright/tests/integration/personal.info.spec.ts (line 212)