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¶
- Create 3 items (QR Test Item 1/2/3) across categories — Expected: Each gets a QR UUID pointing to its storageItem
- Create contract + temporary storage
QR Test Storage— Expected: Gets a QR UUID pointing to temporaryStorage id 1 - Assert Set of 4 UUIDs has size 4 — Expected: All unique
Related¶
- Spec:
tests/e2e/tests/storage.spec.ts