Skip to content

355 — should upload profile image, logout and check image

Description

Verifies that the uploaded profile avatar is persisted on the server across logout and re-login, while the locally typed name fields are not retained (they reset to empty).

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 profilePicture.jpeg as the profile avatar. Expected: an "Updated" toast appears.
  2. Fill in the First Name and Last Name fields with a generated first and last name.
  3. Click "Log out" from the wizard.
  4. Log back in with the same email and password.
  5. Expected: the user lands back on Step 1 of 2 with the "Set personal info" heading.
  6. Expected: the First Name and Last Name fields are empty (these are local form state and reset on logout).
  7. Expected: the language selector still shows "English" and the avatar still shows the previously uploaded profilePicture.jpeg (the image is stored server-side).
  • Spec: playwright/tests/integration/onboarding.spec.ts (line 110)