Skip to content

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

  1. Navigate to Storage > Items and click Nová položkaExpected: Form opens
  2. Fill title Testovací nářadí, volume 10 ks, weight 25, price 150, min qty 5, category Nářadí, placement Regál A1, upload image; Save — Expected: Item appears in grid with qty 0 and volume 10 ks
  3. Open item detail — Expected: All fields render; image visible; QR label contains item name
  4. Decode QR code — Expected: Points to the correct storageItem entity
  • Spec: tests/e2e/tests/storage.spec.ts