017 — should create new full filled additional item template, and then use it in additional items¶
Description¶
Verifies that a fully filled additional-item template (without unit) can later be applied when creating a new additional item: the modal pre-fills every saved field plus the current user, and after picking a date and saving, the new row in the grid reflects all template values.
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¶
- Click "Add template", enter a template name and description, advance to the additional-item step.
- 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" popup appears and a template card with the entered name and description is shown.
- Switch to the "Additional items" tab, click "Add additional item" and choose "Create from template".
- Select the template by name. Expected: The create-additional-item modal opens with unit off, the current user pre-filled, the saved client, project, three labels, both descriptions, billable on, and the saved total price.
- Open the date picker, pick the 5th day of the current month, then click "Save". Expected: A "Created" popup appears and the new row in the grid shows the selected date, the current user, the saved client, project, labels, descriptions, billable = yes and the saved total price, with the grid containing exactly 1 additional item.
Related¶
- Spec:
playwright/tests/integration/additionalItem.spec.ts(line 549)