Skip to content

002 — should create new additional item with only required fields

Description

Verifies that an additional item can be created by filling only the minimum required fields (name and client, no unit), and that the resulting row shows defaults ("-") for every optional field.

Preconditions

  • Signed in as the owner of a freshly provisioned organization
  • A client and a project already exist (only the client is used here)
  • The Additional Items page is open on the "Additional items" tab

Steps

  1. Click "Add additional item" then "Create additional item" to open the form.
  2. Enter the item name, leave the unit toggle off, select the seeded client, and click "Save". Expected: A "Created" confirmation popup appears.
  3. Reveal the hidden columns (date, user, tags, internal description, unit price, amount). Expected: The new row shows today's date, the current user as creator, the chosen client, "-" for project, labels, both descriptions, unit price, amount and total price, billable = yes, and the grid contains exactly 1 additional item.
  • Spec: playwright/tests/integration/additionalItem.spec.ts (line 257)