Skip to content

284 — should create rate and archive it in modal

Description

Verifies that an hourly rate can also be archived from inside the edit modal (rather than the row's quick action), producing the same toast and list update.

Preconditions

  • Signed-in tenant owner with a fresh organization.
  • Seeded labels, team, client, project and task ready to be referenced.
  • The Hourly Rates page is open.

Steps

  1. Create a fully-filled rate with a random amount and Save. Expected: a "Created" toast appears and the list shows 1 rate.
  2. Click Edit on that row to open the rate detail modal. Expected: the edit dialog opens with the existing values.
  3. Click Archive inside the edit modal. Expected: a secondary archive confirmation modal appears.
  4. Confirm the archive action. Expected: an "Archived" toast appears and the active rates list now shows 0 rates.
  • Spec: playwright/tests/integration/hourlyRate.spec.ts (line 166)
  • Spec: playwright/tests/integration/hourlyRate.spec.ts (line 166)