Skip to content

592 — should not discard changes if I click cancel

Description

Verifies that cancelling the "Discard changes" confirmation keeps the user's pending edits intact (the discard dialog acts as a safety net). Runs in both the Task and Project workflow editor.

Preconditions

  • Signed in as an admin of a freshly seeded organization that already has a default project.
  • Workflow editor open showing the default three statuses: ToDo, InPrg, Done.

Steps

  1. Confirm the editor shows 3 statuses.
  2. Delete the InPrg status. Expected: the editor now shows 2 statuses.
  3. Click "Discard changes". Expected: a confirmation dialog appears.
  4. Click Cancel on the discard dialog. Expected: the dialog closes and the editor still shows only 2 statuses (the pending deletion is preserved).
  • Spec: playwright/tests/integration/workflows.spec.ts (line 97)