Skip to content

281 — should create two rates and delete one

Description

Verifies that a single hourly rate can be moved to trash from its row action while another rate remains intact, including the confirmation modal and toast feedback.

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 first fully-filled rate with a random amount (rate A) and Save. Expected: a "Created" toast appears and the list shows 1 rate.
  2. Create a second fully-filled rate with a different random amount (rate B, without a team) and Save. Expected: a "Created" toast appears and the list shows 2 rates.
  3. In the row for rate B, click Move to trash. Expected: a confirmation modal asks to confirm deletion of the hourly rate.
  4. Confirm in the modal. Expected: a "Moved to trash" toast appears, rate B is removed and the list now shows 1 rate (rate A).
  • Spec: playwright/tests/integration/hourlyRate.spec.ts (line 125)
  • Spec: playwright/tests/integration/hourlyRate.spec.ts (line 125)