Skip to content

036 — should handle empty segments in inquiry modal

Description

Edge case: no files uploaded anywhere. Verifies inquiry modal gracefully shows empty state.

Preconditions

  • Clean database (TestControl.cleanDb())
  • User logged in with ADMIN and ACCOUNTING roles
  • Three segments (Seg1, Seg2, Seg3) created
  • Suppliers assigned to segments per scenario

Steps

  1. Create documentation without uploading files — Expected: Documentation saved
  2. Click PoptatExpected: No selectable segments available (disabled or empty dropdown)
  • Spec: tests/e2e/tests/documentations.spec.ts