101 — QR code scanning resolves to correct item¶
Description¶
QR URL contains /api/qrcodes/ pattern, returns correct item data, and navigating to it lands on the item detail page.
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 Scan Test Item; capture item ID and QR URL — Expected: URL contains/api/qrcodes/ - Call QR endpoint — Expected: Returns correct item data
- Navigate to QR URL — Expected: Redirects to item detail page with correct heading
Related¶
- Spec:
tests/e2e/tests/storage.spec.ts