Skip to content

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

  1. Confirm the grid rows match the two seeded additional items from the backend.
  2. Open the "Export as CSV" action.
  3. Choose "Custom" export and tick only the "Name", "Client note", "Project" and "Client" checkboxes.
  4. Click "Confirm" to queue the export. Expected: Exactly one export job appears with status "Export generated", a generated file name, and type CSV.
  5. 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.
  • Spec: playwright/tests/integration/additionalItem.spec.ts (line 422)