Skip to content

405 — should upload avatar, check it and delete avatar

Description

Verifies that a user can upload a profile photo, that the image is shown everywhere the avatar appears, and that removing the photo clears it across reloads.

Preconditions

  • A fresh user is signed in with no avatar (seeded mainProfile data only).
  • The Account Settings → Personal Info page is open.
  • A test image file profilePicture.jpeg is available locally.

Steps

  1. Click "Upload a new photo" and pick profilePicture.jpeg. Expected: an "Updated" confirmation toast appears.
  2. Reload the page. Expected: every avatar image on screen visually matches the uploaded profilePicture.jpeg (compared pixel-wise at 200×200).
  3. Click "Remove photo". Expected: an "Updated" confirmation toast appears.
  4. Reload the page. Expected: no avatar image is rendered anywhere on the page.
  • Spec: playwright/tests/integration/personal.info.spec.ts (line 161)