Skip to content

353 — should upload profile image, persist after reload, and delete it

Description

Verifies that a profile picture uploaded during onboarding is stored on the server (survives a page reload) and can be removed again.

Preconditions

  • A freshly registered and email-verified user account that has not yet completed onboarding.
  • The user is logged in and standing on Step 1 of 2 of the onboarding wizard ("Set personal info").

Steps

  1. Upload the profile picture file profilePicture.jpeg into the avatar slot.
  2. Expected: an "Updated" confirmation toast appears.
  3. Reload the page in the browser.
  4. Expected: the avatar still shows the same image that was uploaded (matches the original profilePicture.jpeg pixel-for-pixel).
  5. Click the delete (X) button on the avatar.
  6. Expected: an "Updated" confirmation toast appears.
  7. Reload the page again.
  8. Expected: the avatar slot is now empty — no profile image is shown.
  • Spec: playwright/tests/integration/onboarding.spec.ts (line 79)