Skip to content

014 — should create new full filled additional item template and edit it

Description

Verifies that an additional-item template can be created with every field filled (excluding date), shown as a card with its name and description, then reopened and edited (changing the total price) with the new value persisted.

Preconditions

  • Signed in as the owner of a freshly provisioned organization
  • A client, a project and three labels already exist
  • The Additional Items page is open on the "Additional item templates" tab

Steps

  1. Click "Add template", enter a template name and description, and advance to the additional-item step.
  2. Fill the template's additional item: name, no unit, total price, client, project, all three labels, billable on, public and internal descriptions. Then click "Save". Expected: A "Created" confirmation popup appears and a template card shows the entered name and description.
  3. Open the template card and advance to its additional-item step. Expected: Every previously entered value is shown (unit off, empty user, client, project, three labels, both descriptions, billable on, the entered total price).
  4. Change the total price to 200 and click "Save". Expected: An "Updated" confirmation popup appears and the template card still shows the original name and description.
  5. Reopen the template and advance to the additional-item step. Expected: All values are unchanged except the price, which now reads 200.
  • Spec: playwright/tests/integration/additionalItem.spec.ts (line 477)