102 — Add item to restock via QR code scan simulation¶
Description¶
Simulates a QR scan by fetching item data from the QR URL, then completes a restock workflow (quantity 3) with protocol upload.
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
QR Restock Test Item— Expected: Item visible - Open restock > Scan tab and fetch item data from QR URL — Expected: Item resolved
- Add item (qty 3) to cart; verify badge
1; upload protocol and submit — Expected: Restock complete - Return to items grid — Expected: Item qty = 3
Related¶
- Spec:
tests/e2e/tests/storage.spec.ts