Skip to content

032 — should show only Segment 2 in inquiry modal when only Segment 2 has files

Description

When a single supplier is assigned to Segment 2 and files are uploaded only there, the inquiry modal dropdown shows only Segment 2.

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
  • One supplier assigned to Segment 2

Steps

  1. Create documentation, upload files to Segment 2 only — Expected: Only Segment 2 has files
  2. Open Poptat modal and click segments dropdown — Expected: Listbox shows only Segment 2; Seg1 and Seg3 not present
  • Spec: tests/e2e/tests/documentations.spec.ts