Skip to content

590 — should not save when delete DONE status

Description

Verifies that a workflow must always contain a Done (completed) status; deleting it and trying to save is blocked. This guard runs in both the Task workflow editor and the Project workflow editor.

Preconditions

  • Signed in as an admin of a freshly seeded organization that already has a default project.
  • Workflow editor open showing the default three statuses: ToDo, InPrg, Done.

Steps

  1. Confirm the editor shows 3 statuses. Expected: ToDo, InPrg, Done are present.
  2. Delete the Done status from the workflow. Expected: the editor now shows only 2 statuses.
  3. Click Save workflow. Expected: the workflow does not save and the editor surfaces the "workflow incomplete — no Done status" warning (in Task workflows the task-level message; in Project workflows the project-level message).
  • Spec: playwright/tests/integration/workflows.spec.ts (line 79)