Skip to content

279 — should create new rate with only required fields

Description

Verifies that an hourly rate can be saved with only the amount filled in, and that every optional column (labels, person, team, client, project, task) falls back to the appropriate empty placeholder.

Preconditions

  • Signed-in tenant owner with a fresh organization.
  • Seeded labels, team, client, project and task exist (but are not used in this flow).
  • The Hourly Rates page is open.

Steps

  1. Click Add rate. Expected: the add-rate dialog opens.
  2. Fill only the Rate amount with a random value (between 100 and 10000); leave Person, Labels, Team, Client, Project and Task empty. Expected: the form allows submission with only the rate filled.
  3. Click Save. Expected: a "Created" success toast appears.
  4. Inspect the new row in the rates list. Expected: Labels shows "No label", Person / Team / Client / Project / Task all show the em-dash placeholder "—", the Rate column shows the entered amount, the Created-at timestamp is set, and the list contains exactly 1 rate.
  • Spec: playwright/tests/integration/hourlyRate.spec.ts (line 102)
  • Spec: playwright/tests/integration/hourlyRate.spec.ts (line 102)