freshyo/docs/test-cases/regional-products.md
2026-10-11 18:21:24 +05:30

3.3 KiB

Regional products and variants

Scope: regional admin product CRUD, native/admin-web forms, SKU features/images and customer publication. Fixtures: A product P with two variants, B product Q, valid store/upload keys. Shared rules apply; all cases NOT RUN.

ID Priority Action / input Expected result
PROD-01 P0 Create A product with two SKUs, quantity features and prices. Exactly one product/two variants; correct store, features, images and price in A.
PROD-02 P1 Edit name, descriptions, variant name/features and images. Existing SKU IDs/count retained; list/detail/customer surfaces agree.
PROD-03 P1 Add third variant, assign slot, order it. Exactly one new SKU; siblings unchanged and orderable.
PROD-04 P1 Remove one variant with historical orders. Live catalog hides it; history retains original identity and billed amount.
PROD-05 P0 Delete whole product after ordering it. Soft deletion hides live product; historical orders remain readable.
PROD-06 P1 Create duplicate name, then reuse name after soft deletion. Agreed uniqueness respected; supported name reuse does not revive old rows.
PROD-07 P1 No SKUs, missing quantity feature, empty feature value, missing store. Clear validation; no orphan product/SKU/features/market rows.
PROD-08 P1 Zero/negative/nonfinite price, MRP below price, extreme values. Approved monetary rules; finite safe prices, no silent invalid sale. Zero-price policy explicitly confirmed.
PROD-09 P1 Empty/Unicode/long name/description; same label on variants. Agreed limits; SKU identity never derived from label alone.
PROD-10 P0 Admin B reads/edits/deletes A IDs; A submits B store/component/SKU IDs. Rejected without cross-region writes or data exposure.
PROD-11 P0 Existing SKU ID from another product included in update. Cannot alter foreign variant or silently treat it as an intended insert.
PROD-12 P1 Re-send owned image keys; change only one variant's image. No requirement to reupload owned images; siblings' images preserved.
PROD-13 P0 One valid and one bad/unclaimed image in create/update. Rejected before product changes/old-image deletion; retry succeeds after correction.
PROD-14 P1 Duplicate SKU/feature IDs in payload; repeated component entry. Agreed deduplication or validation; no duplicate relation rows.
PROD-15 P1 Cancel form, then reopen existing product. Unsaved changes discarded; saved data not overwritten.
PROD-16 P1 Double save/concurrent same-name create. One complete creation or clear conflict; no misleading success.
PROD-17 P1 Timeout before/after commit; inspect by ID/name before retry. Complete or absent write; no half-created variants/duplicate retry.
PROD-18 P1 Delete missing ID or delete already-deleted product. Clear not-found/conflict; no unrelated row affected.
PROD-19 P1 Change product type or increment step with existing cart/orders. Approved transition/quantity rules; old orders unchanged.
PROD-20 P2 Keyboard obscures feature/image controls; large variant list. Scroll/focus/save usable on native and web; no accidental variant edits.

Related: stock, combos, global products, uploads.