Skip to content

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 / Done workflow.

Steps

  1. 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 ToDo and the create-time status menu shows the standard options.
  2. Click Create. Expected: "Created" toast and the projects list now contains 2 projects.
  3. Edit the new project. Expected: allowed next statuses are InPrg and Done. Set InPrg, Save. Expected: "Updated" toast.
  4. Open the Project workflow editor and delete the InPrg status. Expected: editor shows 2 statuses.
  5. Click Save workflow. Expected: the save is blocked and the editor displays the "InPrg is used by existing project" warning.
  • Spec: playwright/tests/integration/workflows.spec.ts (line 580)