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¶
- Click "Add task" and fill in the title (random 4-word string) and the seeded sprint.
- Inspect the Reporter avatar → Expected: it matches the uploaded
profilePicture.jpeg. - Close the form by clicking outside the modal.
- Click "Add task" again → Expected: the "Recover unsaved changes" modal is displayed.
- Click "Recover changes".
- 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.
Related¶
- Spec:
playwright/tests/integration/task.spec.ts(line 403)