freshyo/docs/test-cases/checkout.md
2026-10-18 10:59:18 +05:30

30 lines
3.7 KiB
Markdown

# Checkout summary and submission
Scope: regular/flash checkout, route params, selected address/slots/coupons/notes and Place Order guard. Financial detail in [pricing](pricing-delivery-fees.md).
| ID | Priority | Action / input | Expected result |
|---|---|---|---|
| CHECK-01 | P0 | Valid Cart→Checkout→COD success. | Correct items/slots/address/coupons/instructions, matching authoritative payable. |
| CHECK-02 | P1 | Items assigned to S1/S2, inspect grouped summary. | Correct group quantities/dates, chronologically ordered. |
| CHECK-03 | P1 | Back to Cart, edit every selection, return. | Latest state shown/submitted; no obsolete cached route selection. |
| CHECK-04 | P1 | Checkout readonly items/address/notes. | Cart is intentional edit path; back navigation usable. |
| CHECK-05 | P0 | Missing address, missing/out-of-area coordinates or region, no valid items. | Submission blocked with useful action; no empty group. |
| CHECK-06 | P1 | Empty cart vs items with no assigned slots. | Distinct meaningful empty states; hook order stable on async load. |
| CHECK-07 | P0 | Malformed slot/coupon param, duplicate/nonfinite IDs, missing colon/groups. | Safe validation/reconciliation; cannot order unintended SKU/slot. |
| CHECK-08 | P0 | Stale price/stock/freeze/capacity/address/coupon before submit. | Server revalidation; documented reprice/recovery, no false success. |
| CHECK-09 | P0 | Rapid Place Order tap plus pending rerender. | Synchronous guard sends one in-app request. |
| CHECK-10 | P1 | Mutation fails then user retries. | Loading guard released; error displayed; cart/notes remain. |
| CHECK-11 | P0 | Response lost after order commit. | Inspect authoritative orders before retry; flag known lack of server idempotency. |
| CHECK-12 | P1 | Navigate away/background app during request. | No crash/wrong success route or duplicate submit on resume. |
| CHECK-13 | P1 | Multiple suborders server response. | Success references valid created order/group and sums server totals. |
| CHECK-14 | P1 | Fully discounted goods and free fee give server total zero. | Success shows authoritative zero, not stale fallback preview. |
| CHECK-15 | P0 | UI selected coupons are now ineligible but IDs remain selected. | No silently misleading discounted preview; invalid selection removed or actionable rejection. |
| CHECK-16 | P1 | Customer signs out/session expires mid-checkout. | Protected mutation denied; safe login return preserves allowed state. |
| CHECK-17 | P0 | Client-supplied regionId/bound differs from the order address coordinates. | Server derives region+bound from the address coordinates and ignores the client override. |
| CHECK-18 | P1 | One cart item invalid, several valid; flash eligibility changed. | Summary and submitted item subset/charge agree. |
| CHECK-19 | P2 | Android back/iOS swipe/browser refresh/deep link. | No stale cart, lost instruction or login-return loop. |
| CHECK-20 | P1 | Online option in current build. | Online payment is intentionally absent/disabled for this release; COD is the only usable method and invokes no gateway. |
| CHECK-21 | P0 | Place an order whose address coordinates are in B while the client browsing region is A. | Order is scoped to the address's region/bound (from coordinates); the browsing region is not corrupted. |
| CHECK-22 | P0 | Web scheduled checkout with items assigned to S1 and S2. | Each submitted item carries its own selected slot ID; no scheduled item is sent with `null`, so checkout succeeds and both slots persist. |
Known policy: checkout is COD-only; the online method is intentionally absent/disabled. Server order-idempotency is deferred; concurrent raw API submissions are characterization/risk cases, not an assumed deduplicated happy path.