Skip to content

634 — should preserve saved order when cancelling reorder

Description

Verifies that dragging items in the Change priority dialog and then clicking Cancel discards the local reorder — the page chips and the backing billableRatePriority query remain at the order that was last saved (default in this scenario).

Preconditions

  • Signed-in tenant owner with a fresh organization.
  • Priority is at the server default.
  • The Finance Settings → Hourly rates page is open.

Steps

  1. Click Edit. Expected: the Change priority dialog opens with the default order.
  2. Drag items to a new order (User on top, Task at the bottom). Expected: the dialog reflects the dragged order.
  3. Click Cancel. Expected: the dialog closes without a snackbar.
  4. Assert the page chips. Expected: chips remain in the default order.
  5. Query billableRatePriority via API. Expected: the persisted order equals the default.
  • Spec: playwright/tests/integration/hourlyRate.spec.ts