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 / Doneworkflow.
Steps¶
- Delete the three default statuses
ToDo,InPrg,Donefrom the workflow. - Create three custom statuses:
In Test,To Test,Test Done. Expected: editor shows 3 statuses. - Switch initial status to
To Test, Save the status. - Add transitions
In Test ← To TestandTest Done ← In Test. - 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.
Related¶
- Spec:
playwright/tests/integration/workflows.spec.ts(line 887)