Skip to content

015 — should create new full empty template

Description

Verifies that an additional-item template can be saved with only a name (no description, no additional-item fields), and that reopening it shows every field empty including the user, with billable on by default and total price 0.

Preconditions

  • Signed in as the owner of a freshly provisioned organization
  • The Additional Items page is open on the "Additional item templates" tab

Steps

  1. Click "Add template", enter a template name, and advance to the additional-item step.
  2. Click "Save" without filling anything else. Expected: A "Created" confirmation popup appears and a template card shows the name with an empty description.
  3. Open the template card and advance to its additional-item step. Expected: Unit toggle is off, user is empty (templates intentionally do not auto-fill the current user), client, project, public and internal description are all empty, billable is on, and the total price is 0.
  • Spec: playwright/tests/integration/additionalItem.spec.ts (line 504)