Skip to content

490 — should fill title and sprint, cancel and check that recovery modal show up

Description

Verifies the cancel-then-reopen recovery flow with two filled fields (title and sprint): the form must offer to recover the draft and restore both values on confirmation.

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 fill in the title (random 4-word string) and the seeded sprint.
  2. Click "Cancel" to close the form without saving.
  3. Click "Add task" again → Expected: the "Recover unsaved changes" modal is displayed.
  4. Click "Recover changes".
  5. Inspect the recovered form → Expected: title matches the entered title and sprint matches the seeded sprint, while description is empty, project is the seeded project, status "To do", assignee empty, reporter defaults to current owner, story points empty, priority "Medium", and start/due dates empty.
  • Spec: playwright/tests/integration/task.spec.ts (line 375)