608 — should not save workflow when deleted status is already used¶
Description¶
Project-workflow equivalent of 598: the Project workflow cannot be saved when a status the user is trying to delete is already used as the status of an existing project; the editor surfaces a "status in use" guard.
Preconditions¶
- Signed in as an admin of a freshly seeded organization with one seeded project.
- Project workflow editor open at the default
ToDo / InPrg / Doneworkflow.
Steps¶
- Switch to Projects list (1 project present), click Add project, pick Simple project, set title and a 5-letter prefix. Expected: default project status is
ToDoand the create-time status menu shows the standard options. - Click Create. Expected: "Created" toast and the projects list now contains 2 projects.
- Edit the new project. Expected: allowed next statuses are
InPrgandDone. SetInPrg, Save. Expected: "Updated" toast. - Open the Project workflow editor and delete the
InPrgstatus. Expected: editor shows 2 statuses. - Click Save workflow. Expected: the save is blocked and the editor displays the "InPrg is used by existing project" warning.
Related¶
- Spec:
playwright/tests/integration/workflows.spec.ts(line 580)