Skip to content

278 — should create new full filled rate

Description

Verifies that a fully populated hourly rate can be created and that every chosen field — person, labels, team, client, project, task, amount and creation date — is shown correctly in the Hourly Rates list.

Preconditions

  • Signed-in tenant owner with a fresh organization.
  • Three seeded labels, one seeded team, plus a client, project and task created by the stopwatch flow.
  • The Hourly Rates page is open.

Steps

  1. Click Add rate to open the new-rate form. Expected: the add-rate dialog opens with empty fields.
  2. Pick the current user as the Person, select all three seeded labels, choose the seeded client, project and task, pick the seeded team, and enter a random amount (between 100 and 10000) in the Rate field. Expected: all selections are accepted by the form.
  3. Click Save. Expected: a "Created" success toast appears.
  4. Inspect the new row in the rates list. Expected: the row shows the three labels, the owner's name as Person, the team name, the client name, the project title, the task title, the entered amount, and a Created-at timestamp; the list contains exactly 1 rate.
  • Spec: playwright/tests/integration/hourlyRate.spec.ts (line 87)
  • Spec: playwright/tests/integration/hourlyRate.spec.ts (line 87)