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

22 lines
2 KiB
Markdown

# Product groups
Scope: admin group CRUD/membership and group-to-slot association. Confirm snapshot versus live group membership semantics before executing dependency cases.
| ID | Priority | Action / input | Expected result |
|---|---|---|---|
| GROUP-01 | P1 | Create A group with P/G SKU members. | One group and correct membership; list/detail reload accurately. |
| GROUP-02 | P1 | Edit group metadata, add/remove members. | Exactly intended relation changes; other groups unaffected. |
| GROUP-03 | P1 | Attach group to new scheduled slot. | Intended member SKUs available once in slot. |
| GROUP-04 | P1 | SKU appears explicitly and via two groups on same slot. | No duplicate slot/cart items or duplicate relation rows. |
| GROUP-05 | P0 | A group references B-only SKU; B edits A group ID. | Cross-region relation/access rejected before writes. |
| GROUP-06 | P1 | Missing IDs, duplicate members/name, empty group. | Agreed validation/deduplication and empty-group policy. |
| GROUP-07 | P1 | Group member soft-deleted/suspended after slot creation. | Serviceability filtering consistent with agreed membership semantics. |
| GROUP-08 | P1 | Edit membership after slots reference the group. | Snapshot/live policy explicitly observed; customer and admin agree. |
| GROUP-09 | P1 | Delete unused group. | Group/membership removed; products retained. |
| GROUP-10 | P0 | Delete group attached to active/historical slot. | Defined dependency protection/cascade; no invalid historical order links. |
| GROUP-11 | P1 | Concurrent group update/slot assignment. | No stale/missing duplicated slot memberships. |
| GROUP-12 | P1 | Save fails midway or repeated delete. | No partial member deletion; clear result on retry. |
| GROUP-13 | P2 | Large group picker/filter, global badge and readonly members. | Correct selected IDs; no labels mistaken for product IDs. |
| GROUP-14 | P1 | Rename group with orders in attached slots. | Historic orders/slot times and amounts unchanged. |
Related: [scheduled slots](scheduled-slots.md), [authorization](authorization-api-contracts.md).