Skip to content

001 — should create new full filled additional item

Description

Verifies that a user can create a fully filled, billable additional item (without unit) by completing every field in the create form, and that the new row in the Additional Items grid displays every entered value correctly.

Preconditions

  • Signed in as the owner of a freshly provisioned organization
  • A client and a project (with the project belonging to that client) already exist
  • Three labels already exist in the organization
  • The Additional Items page is open on the "Additional items" tab

Steps

  1. Click "Add additional item" and then "Create additional item" to open the create modal.
  2. Fill in the name, choose "no unit", enter a total price, select the seeded client and project, attach three labels, pick the 5th day of the current month as the date, mark the item as billable, and fill the public and internal descriptions.
  3. Click "Save". Expected: A "Created" confirmation popup appears.
  4. Reveal the hidden columns (date, user, tags, internal description, unit price, amount). Expected: The new row shows the selected date, the current user as the creator, the chosen client and project, all three labels, both descriptions, billable = yes, no unit price, amount = "-", the entered total price, and the grid contains exactly 1 additional item.
  • Spec: playwright/tests/integration/additionalItem.spec.ts (line 238)