Bỏ qua để đến nội dung

Test cases: Vendor orders & checkout

Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.

VersionDate (UTC)Summary
1.0.02026-05-13Initial split — high surface area for revenue

  • Guides: Orders (Vendor), POS (Vendor)
  • Apps: /dashboard/orders, /dashboard/orders/create, /dashboard/orders/shifts/*, integration with usePosPlaceOrder (see Vendor testing index).
  • API: vendor/orders, shift endpoints, order create payloads (OpenAPI).

IDClassScenarioAutomation
TC-VOC-001HappyOrder list loads with store + status filters; URL syncE2E*
TC-VOC-002HappyOpen order detail: lines, customer, payments, timelineE2E*
TC-VOC-003UnhappyOrder in other store (tampered id) → 403 / not foundUnit
TC-VOC-004UnhappyEmployee without order module → 403Unit
TC-VOC-005HappyCancel order when business rules allow; list updatesE2E*
TC-VOC-006UnhappyCancel blocked (state / payment) → error toast + no partial mutationUnit + E2E*
IDClassScenarioAutomation
TC-VOC-010HappyShift list for store; open shift detail with aggregatesE2E*
TC-VOC-011HappyClose shift with balanced cash; confirmation summaryE2E*
TC-VOC-012UnhappyClose shift with unresolved orders → blocking or warning per policyUnit + E2E*
TC-VOC-013UnhappyOverlapping shift open → rejectionUnit
IDClassScenarioAutomation
TC-VOC-020HappyAdd line items, customer, discounts; totals match server quoteE2E*
TC-VOC-021UnhappyOut-of-stock SKU at quantity → block or warn per UXE2E*
TC-VOC-022HappySubmit create order succeeds; redirects or clears cartE2E*
TC-VOC-023UnhappyNetwork fail on submit → retryable error; no duplicate on retry if idempotent keyE2E*
IDClassScenarioAutomation
TC-VOC-030HappyusePosPlaceOrder contract: dashboard POS, POS workspace, create order share mutation handlersUnit + E2E✓ (apps/vendor-web/e2e/pos-place-order-surfaces.spec.ts)
TC-VOC-031UnhappyPlace order validation error maps to stock highlight + translated messageUnit
TC-VOC-032HappyReceipt finalize runs after success (runVendorPosOrderReceiptFinalize path)Unit

  • Shift open/close rules match Work shifts doc
  • Every new checkout entrypoint added to TC-VOC-030 matrix
  • BNPL / receivable creation side-effects listed if create order opens debt

Parent index: System test cases (index) · UI depth: Vendor POS workspace · Cross-cutting: Vendor backend