013 — should create csv export template and then use it and export csv¶
Description¶
Verifies the export-template workflow: a user can first create a CSV export template with a fixed column selection, then re-use that template later to generate a CSV in one click, and the resulting file contains exactly the columns saved on the template.
Preconditions¶
- Signed in as the owner of a freshly provisioned organization
- A client, a project and labels already exist
- Two additional items have been seeded via the API
- The Additional Items page is open on the "Additional items" tab and has been reloaded so both items are visible
Steps¶
- Switch to the "Additional item templates" tab and open "Export templates".
- Click "Add export template", enter a template name and description, advance to the column step, and tick the "Name", "Client note", "Project" and "Client" checkboxes.
- Click "Confirm". Expected: A "Created" confirmation popup appears.
- Switch back to the "Additional items" tab and confirm the grid still matches the two seeded items.
- Open "Export as CSV", choose "With template" and click the newly created template. Expected: No confirmation step is shown; the export starts immediately, one export job appears with status "Export generated", a generated file name, and type CSV.
- Download the generated file. Expected: The CSV contains only Name, Client description, Project and Client columns, with values matching the seeded additional items.
Related¶
- Spec:
playwright/tests/integration/additionalItem.spec.ts(line 430)