Skip to content

589 — should not save without initial status

Description

Verifies that a workflow cannot be saved when no status is marked as the initial status. This guard runs in both the Task workflow editor and the Project workflow editor.

Preconditions

  • Signed in as an admin of a freshly seeded organization that already has a default project.
  • Workflow editor open (Task workflows for a seeded project, or Project workflows) showing the default ToDo / InPrg / Done statuses with ToDo as the initial status.

Steps

  1. Open the ToDo status and toggle its "Initial status" switch off, then click Save on the status.
  2. Click Save workflow on the full workflow. Expected: the workflow does not save and the editor shows the "workflow incomplete — no initial status" warning, blocking the user from leaving the editor in an invalid state.
  • Spec: playwright/tests/integration/workflows.spec.ts (line 72)