Skip to content

116 — Modify cart quantity using + / − buttons

Description

Increment/decrement cart qty before completing restock; final qty used for the movement.

Preconditions

  • Clean database
  • User logged in with ADMIN and WAREHOUSEMAN roles
  • Three storage categories pre-created (Nářadí, Materiál, Ochranné pomůcky)
  • Storage items and contract pre-created via API (per scenario)

Steps

  1. Add item qty 5 to cart; + twice → 7; − three times → 4 — Expected: Cart qty = 4
  2. Complete restock with protocol — Expected: Movement qty = 4; total = 4 × 150 = 600
  • Spec: tests/e2e/tests/storage.spec.ts