Core End-to-End Test Scenarios (QA Playbook)
This section provides executable, step-by-step test scenarios for QA teams to validate every release of PointNXT across pnxt-api-nestjs, pnxt-admin, and pnxt-warehouse.
1. Test Suite E2E-01: Standard Prepaid Omnichannel Order-to-Cash
Objective: Validate that a prepaid Shopify order is ingested, auto-confirmed, picked, packed with scale verification, manifested, and that the tracking number is pushed back to Shopify.
Execution Script:
- Preconditions:
- Master SKU
TSHIRT-BLK-Mexists with On-Hand = 10, Reserved = 0, Available = 10. - Shopify Channel is connected and
Auto-Confirm Orders = ON.
- Master SKU
- Step 1: Place Order on Shopify:
- Place an order on Shopify for 1x
TSHIRT-BLK-Mwith prepaid payment. - Assertion: In
pnxt-admin> Orders, the order appears within 5 seconds. - Assertion: Order status is
CONFIRMED. - Assertion: Stock view shows: On-Hand = 10, Reserved = 1, Available = 9.
- Assertion: Available stock on Amazon drops to 9 automatically.
- Place an order on Shopify for 1x
- Step 2: Generate Pick Wave in WMS:
- In
pnxt-warehouse, navigate to Fulfillment > Pick Waves > Create Wave. - Generate wave for single-item orders.
- Assertion: Order is included in wave. Pick list displays correct bin (e.g.
A-01-02).
- In
- Step 3: Pack and Scan Items:
- Go to Packing Bench. Scan order barcode.
- Scan incorrect barcode (e.g.,
TSHIRT-RED-L). - Assertion: Red error banner appears; packing is blocked.
- Scan correct barcode (
TSHIRT-BLK-M). - Assertion: Item verified green.
- Place box on scale (450g) and click Print Shipping Label.
- Assertion: Delhivery thermal shipping label PDF is rendered with valid AWB barcode.
- Assertion: Order status transitions to
PACKED.
- Step 4: Manifest and Handover:
- Go to Manifests > Create Manifest. Scan AWB. Click Close Manifest.
- Assertion: Order status transitions to
MANIFESTED/SHIPPED. - Assertion: Physical On-Hand drops from 10 to 9. Reserved drops from 1 to 0. Available stays at 9.
- Assertion: Shopify order is marked Fulfilled with tracking number and URL.
2. Test Suite E2E-02: Virtual Bundle BOM Assembly & Inwarding
Objective: Validate that selling a virtual bundle reduces individual component stocks and that receiving component stock replenishes the bundle.
Execution Script:
- Preconditions:
- Component SKU A (
SHAMPOO): On-Hand = 5. - Component SKU B (
CONDITIONER): On-Hand = 2. - Bundle SKU (
HAIR-CARE-COMBO): Requires 1x A + 1x B. - Assertion: Published bundle stock on channels is 2.
- Component SKU A (
- Step 1: Buy 1 Bundle Unit:
- Place an order for 1x
HAIR-CARE-COMBO. - Assertion: Stock A Reserved = 1 (Available = 4).
- Assertion: Stock B Reserved = 1 (Available = 1).
- Assertion: Published bundle stock drops to 1.
- Place an order for 1x
- Step 2: Buy Second Bundle Unit:
- Place second order for 1x
HAIR-CARE-COMBO. - Assertion: Stock B Available = 0.
- Assertion: Published bundle stock on Shopify drops to 0 (Out of Stock).
- Place second order for 1x
- Step 3: Inward New Stock of Component B via GRN:
- In
pnxt-warehouse, create GRN for 10 units ofCONDITIONER. Complete putaway. - Assertion: Component B Available = 10.
- Assertion: Limiting component is now Component A (Available = 3).
- Assertion: Published bundle stock recalculates and pushes 3 to Shopify and Amazon within 10 seconds.
- In