Skip to content

606 — should not delete default workflow when used in column

Description

Verifies that the Task workflow cannot be replaced wholesale while one of its default statuses is still used by a board column on the seeded project; the editor surfaces a "status used in column" guard.

Preconditions

  • Signed in as an admin of a freshly seeded organization that already has a default project whose board has columns mapped to the default statuses.
  • Task workflow editor open at the default ToDo / InPrg / Done workflow.

Steps

  1. Delete the three default statuses ToDo, InPrg, Done.
  2. Create three custom statuses: In Test, To Test, Test Done. Expected: editor shows 3 statuses.
  3. Switch initial status to To Test and 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 displays the "status is used in column" warning, preventing the user from breaking a board that still references the deleted statuses.
  • Spec: playwright/tests/integration/workflows.spec.ts (line 505)