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

2.3 KiB

Region administration

Scope: superadmin.regions, public region listing and region summary selectors. Regions cannot be deleted; cleanup must not assume deletion.

ID Priority Action / input Expected result
REGION-01 P0 Create region with valid initial bound/config. Complete region; public selector and admin assignment can use it.
REGION-02 P1 Read/list region; edit name and supported metadata. Stable ID; changes propagate without detaching products/staff.
REGION-03 P1 New region with no products/orders. Intentional empty states, not initialization crash.
REGION-04 P1 Create missing/empty bounds or malformed initial data. Rejected; no orphan region/constants/bounds.
REGION-05 P1 Empty/duplicate/Unicode/long name. Agreed uniqueness/limits; IDs not inferred from labels.
REGION-06 P0 Staff/customer/anonymous attempts region mutation. Superadmin-only access enforced server-side.
REGION-07 P1 Read/update missing, negative or wrong-type region ID. Clear rejection, not empty false-success update.
REGION-08 P0 Create region when global products already exist. Required per-region market rows seeded coherently; no unintended zero-price sale.
REGION-09 P1 Region create fails during bound or global market-row seeding. Atomic/recoverable initialization; no partially selectable region.
REGION-10 P1 Double create, concurrent same-name creation. One complete region or documented conflict; no orphan rows.
REGION-11 P1 Update region while users browse/order. Existing IDs/order region labels remain coherent; no data moves accidentally.
REGION-12 P1 Attempt deletion through UI/direct API. Unsupported action clearly unavailable; no destructive side effects.
REGION-13 P2 Large list and renamed region in saved selection. Selected region resolves by ID; stale labels refresh.
REGION-14 P0 Inspect public list payload. Only intended region/bound discovery metadata, no private staff/account data.
REGION-15 P1 Newly created region publication to fresh/existing customers. Discoverable within bounded deadline; B unchanged.

Related: bounds, global products, cache.