098 — should create a new storage item¶
Description¶
Creates a storage item with title, dimensions, price, category, placement and image. Verifies it appears in grid, detail page shows all values, QR code label contains the item name, and decoded QR resolves to the correct storageItem.
Preconditions¶
- Clean database
- User logged in with ADMIN and WAREHOUSEMAN roles
- Three storage categories pre-created (Nářadí, Materiál, Ochranné pomůcky)
Steps¶
- Navigate to Storage > Items and click Nová položka — Expected: Form opens
- Fill title
Testovací nářadí, volume 10 ks, weight 25, price 150, min qty 5, categoryNářadí, placementRegál A1, upload image; Save — Expected: Item appears in grid with qty 0 and volume 10 ks - Open item detail — Expected: All fields render; image visible; QR label contains item name
- Decode QR code — Expected: Points to the correct storageItem entity
Related¶
- Spec:
tests/e2e/tests/storage.spec.ts