491 — should fill title and sprint, click elsewhere and check that recovery modal show up¶
Description¶
Verifies that dismissing the task form by clicking outside it (rather than pressing Cancel) still triggers the draft-recovery flow on reopen, and that the saved fields are restored.
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¶
- Click "Add task" and fill in the title (random 4-word string) and the seeded sprint.
- Close the form by clicking on the background (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 match what was entered, 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.
Related¶
- Spec:
playwright/tests/integration/task.spec.ts(line 389)