Skip to content

615 — should delete try to delete default workflow when status is used

Description

Verifies that the Project workflow cannot be fully replaced while the default ToDo status is still in use by the seeded project; the editor surfaces a "ToDo status used" guard.

Preconditions

  • Signed in as an admin of a freshly seeded organization with one seeded project (project status ToDo).
  • Project workflow editor open at the default ToDo / InPrg / Done workflow.

Steps

  1. Delete the three default statuses ToDo, InPrg, Done from the workflow.
  2. Create three custom statuses: In Test, To Test, Test Done. Expected: editor shows 3 statuses.
  3. Switch initial status to To Test, Save the status.
  4. Add transitions In Test ← To Test and Test Done ← In Test.
  5. Click Save workflow. Expected: the save is blocked and the editor shows the "ToDo status is used" warning because the seeded project still has status ToDo.
  • Spec: playwright/tests/integration/workflows.spec.ts (line 887)