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

23 lines
2.1 KiB
Markdown

# Regional stores
Scope: admin store CRUD and customer store list/detail. Fixtures store A/B, empty store and historical product/order dependencies.
| ID | Priority | Action / input | Expected result |
|---|---|---|---|
| STORE-01 | P0 | Admin A creates store with valid image/description. | Regional A record; visible in A after publication. |
| STORE-02 | P1 | Edit name/description/image; relaunch customer. | List/detail/product store labels agree. |
| STORE-03 | P1 | Empty store detail, then attach first product. | Intentional empty state; correct first product publication. |
| STORE-04 | P0 | Browse B/admin B fetch A store by ID. | No foreign private store data/mutation. |
| STORE-05 | P1 | Empty/long/Unicode/duplicate name and optional image. | Agreed validation/normalization without partial store. |
| STORE-06 | P0 | Customer/anonymous creates or deletes store. | Staff authorization required. |
| STORE-07 | P0 | Attach regional product to B store/global store through A create. | Allowed ownership rules enforced; no mixed association. |
| STORE-08 | P0 | Delete store with products or other required references. | Approved dependency block; no orphan products/history. |
| STORE-09 | P1 | Delete unreferenced store twice. | First persists; second clear missing/conflict, no accidental other delete. |
| STORE-10 | P1 | Replace image with bad/unclaimed upload key. | Store and old image unchanged; safe recovery. |
| STORE-11 | P1 | Large product list with deleted/hidden variants. | Only purchasable/visible catalog entries shown; correct pagination if supported. |
| STORE-12 | P1 | Double create/save timeout and retry. | Inspect final state; no duplicate/unclaimed relation. |
| STORE-13 | P1 | Remove owner field from legacy form/payload. | Current contract works without owner; no lost required store data. |
| STORE-14 | P2 | Deep link unknown/deleted store, refresh/back. | Clear not-found/back path; no stale broken detail. |
| STORE-15 | P1 | Successful mutation followed by cache/upload-cleanup failure. | Persisted outcome explicit; eventual repair, no false rollback claim. |
Related: [global stores](global-stores.md), [uploads](uploads-images.md).