Skip to content

029 — should upload files to all folders and send emails

Description

Comprehensive scenario: upload files to common folder + all three segment folders, create inquiries, trigger email sending and verify all three suppliers receive correct emails.

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 per segment (3 suppliers total)

Steps

  1. Run allScenarios.full file-upload flow — Expected: Files uploaded to common + segment folders
  2. Trigger email sending — Expected: Success message shown, emails queued
  3. Verify mail delivery — Expected: All three suppliers receive an inquiry email with correct content
  • Spec: tests/e2e/tests/documentations.spec.ts