Skip to content

011 — should create csv export and check data structure

Description

Verifies the full custom CSV export flow for additional items: when the user picks "all columns", the generated CSV contains every field for every row currently shown in the grid.

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 (one with project, one without)
  • 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 the "All" columns checkbox.
  4. Click "Confirm" to queue the export. Expected: Exactly one export job appears in the export panel with status "Export generated", a generated file name, and type CSV.
  5. Download the generated file. Expected: The downloaded CSV contains all expected columns and every value matches the corresponding additional item returned by the backend.
  • Spec: playwright/tests/integration/additionalItem.spec.ts (line 414)