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¶
- Upload the profile picture file
profilePicture.jpeginto the avatar slot. - Expected: an "Updated" confirmation toast appears.
- Reload the page in the browser.
- Expected: the avatar still shows the same image that was uploaded (matches the original
profilePicture.jpegpixel-for-pixel). - Click the delete (X) button on the avatar.
- Expected: an "Updated" confirmation toast appears.
- Reload the page again.
- Expected: the avatar slot is now empty — no profile image is shown.
Related¶
- Spec:
playwright/tests/integration/onboarding.spec.ts(line 79)