Skip to content

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

  1. Create QR Restock Test ItemExpected: Item visible
  2. Open restock > Scan tab and fetch item data from QR URL — Expected: Item resolved
  3. Add item (qty 3) to cart; verify badge 1; upload protocol and submit — Expected: Restock complete
  4. Return to items grid — Expected: Item qty = 3
  • Spec: tests/e2e/tests/storage.spec.ts