Skip to content

100 — Comprehensive QR code test — multiple items and storage

Description

Generates QR codes for 3 storage items + 1 temporary storage and verifies all 4 UUIDs are unique and point to correct entities.

Preconditions

  • Clean database
  • User logged in with ADMIN and WAREHOUSEMAN roles
  • Three storage categories pre-created (Nářadí, Materiál, Ochranné pomůcky)

Steps

  1. Create 3 items (QR Test Item 1/2/3) across categories — Expected: Each gets a QR UUID pointing to its storageItem
  2. Create contract + temporary storage QR Test StorageExpected: Gets a QR UUID pointing to temporaryStorage id 1
  3. Assert Set of 4 UUIDs has size 4 — Expected: All unique
  • Spec: tests/e2e/tests/storage.spec.ts