Skip to content

614 — should delete default workflow and create custom workflow

Description

Verifies that after first trashing the only project (so no projects reference the default statuses), the user is still blocked from saving a custom Project workflow that leaves the workflow incomplete (no Done status remains).

Preconditions

  • Signed in as an admin of a freshly seeded organization with one seeded project.
  • Project workflow editor accessible.

Steps

  1. Switch to All projects, delete the seeded project, confirm "Move to trash". Expected: "Moved to trash" toast.
  2. Open the Project workflow editor. Delete the InPrg and Done default statuses. (Deleting ToDo is currently skipped pending a bug fix.)
  3. Create three custom statuses In Test, To Test, Test Done. Expected: editor shows 4 statuses (ToDo plus the three custom).
  4. Switch initial status to To Test, Save the status.
  5. Add transitions In Test ← To Test and Test Done ← In Test.
  6. Click Save workflow. Expected: the save is blocked and the editor displays the "workflow incomplete — no Done status" warning for project workflows (because the original Done was deleted and the new custom Test Done is not registered as the workflow's Done equivalent).
  • Spec: playwright/tests/integration/workflows.spec.ts (line 856)