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¶
- Switch to All projects, delete the seeded project, confirm "Move to trash". Expected: "Moved to trash" toast.
- Open the Project workflow editor. Delete the
InPrgandDonedefault statuses. (DeletingToDois currently skipped pending a bug fix.) - Create three custom statuses
In Test,To Test,Test Done. Expected: editor shows 4 statuses (ToDoplus the three custom). - 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 displays the "workflow incomplete — no Done status" warning for project workflows (because the original
Donewas deleted and the new customTest Doneis not registered as the workflow's Done equivalent).
Related¶
- Spec:
playwright/tests/integration/workflows.spec.ts(line 856)