Skip to content

492 — should fill title and sprint, click elsewhere, recover and still have profile picture

Description

Verifies that draft recovery preserves not only text fields but also the reporter's profile picture: the avatar shown in the Reporter field after recovery must still match the user's uploaded avatar image.

Preconditions

  • Signed-in tenant with a seeded Advanced project, a one-week sprint, and the current user's avatar uploaded from playwright/files/profilePicture.jpeg.
  • Currently on the seeded project's Tasks tab. The form is opened from inside a project so Sprint and Reporter are visible.

Steps

  1. Click "Add task" and fill in the title (random 4-word string) and the seeded sprint.
  2. Inspect the Reporter avatar → Expected: it matches the uploaded profilePicture.jpeg.
  3. Close the form by clicking outside the modal.
  4. Click "Add task" again → Expected: the "Recover unsaved changes" modal is displayed.
  5. Click "Recover changes".
  6. Inspect the recovered form → Expected: title and sprint are restored, other fields are at defaults (description empty, project = seeded project, status "To do", assignee empty, reporter = current owner, story points empty, priority "Medium", dates empty), AND the Reporter avatar still matches the uploaded profilePicture.jpeg.
  • Spec: playwright/tests/integration/task.spec.ts (line 403)