Skip to content

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

  1. Create QR Scan Test Item; capture item ID and QR URL — Expected: URL contains /api/qrcodes/
  2. Call QR endpoint — Expected: Returns correct item data
  3. Navigate to QR URL — Expected: Redirects to item detail page with correct heading
  • Spec: tests/e2e/tests/storage.spec.ts