Skip to content

488 — should fill one field and then cancel it, use recovery and assert all data

Description

Verifies that even a single touched field (only the sprint) is enough to trigger the draft-recovery flow on the task form, and that recovery restores just that field while every other field falls back to its default.

Preconditions

  • Signed-in tenant with a seeded Advanced project and a one-week sprint.
  • Currently on the seeded project's Tasks tab. The form is opened from inside a project so Sprint is visible.

Steps

  1. Click "Add task" and set only the seeded sprint (leave all other fields untouched).
  2. Click "Cancel" to close the form.
  3. Click "Add task" again → Expected: the "Recover unsaved changes" modal is displayed.
  4. Click "Recover changes".
  5. Inspect the recovered form → Expected: sprint matches the seeded sprint, while title and description are empty, project is the seeded project, status is "To do", assignee is empty, reporter defaults to the current owner, story points are empty, priority is "Medium", and start/due dates are empty.
  • Spec: playwright/tests/integration/task.spec.ts (line 344)