012 — should create csv export and check data structure for only two fields¶
Description¶
Verifies that the custom CSV export honours the user's column selection: when only a few columns are picked, the generated CSV contains exactly those columns and no others.
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¶
- Confirm the grid rows match the two seeded additional items from the backend.
- Open the "Export as CSV" action.
- Choose "Custom" export and tick only the "Name", "Client note", "Project" and "Client" checkboxes.
- Click "Confirm" to queue the export. Expected: Exactly one export job appears with status "Export generated", a generated file name, and type CSV.
- Download the generated file. Expected: The CSV contains only the columns Name, Client description, Project and Client, and their values match the corresponding additional items.
Related¶
- Spec:
playwright/tests/integration/additionalItem.spec.ts(line 422)