Skip to content

632 — should open priority dialog and reorder via drag

Description

Verifies that the Hourly rate precedence page renders the six dimensions (Task → Label → Project → Client → Team → User), that clicking Edit opens the Change priority dialog with the same order, and that dragging an item to a new slot persists the new order to the backend and updates the chips shown on the page.

Preconditions

  • Signed-in tenant owner with a fresh organization.
  • Priority is at the server default (Task → Tags → Project → Client → Team → User).
  • The Finance Settings → Hourly rates page is open.

Steps

  1. Assert the page's priority chips render in default order. Expected: chips read Task → Tags → Project → Client → Team → User left-to-right.
  2. Click Edit. Expected: the Change priority dialog opens with the same six dimensions in the same order.
  3. Drag the items so the order becomes User → Tags → Project → Client → Team → Task. Expected: the dialog reflects the new vertical order.
  4. Click Save. Expected: an "Updated" snackbar appears and the dialog closes.
  5. Assert the page's priority chips. Expected: chips now read User → Tags → Project → Client → Team → Task.
  6. Query billableRatePriority via API. Expected: the persisted order equals the dragged order.
  • Spec: playwright/tests/integration/hourlyRate.spec.ts