Skip to content

ATS-COM-CAT-005Organize product shelves: Acceptance Test Set

Markdown

ATS-COM-CAT-005

Organize product shelves: Acceptance Test Set

Markdown
  • DocumentProposed

Planning

Proves capability
CAP-COM-CAT-005

KindAcceptance test setProduct areaCommerceModuleCatalog and Selling ConfigurationRevision1

Read atservices-commerce c8b66a98react-console baf6dae3

Test Scenarios

6 scenarios proving CAP-COM-CAT-005; 6 bound to an existing test.

01 Category requests reject hierarchy and unsupported sortingapinegativetest
Proves
BR-CAP-COM-CAT-005-02 BR-CAP-COM-CAT-005-03
Preconditions
A category request is otherwise valid
Steps
Supply a parent and then an unsupported sort
Expected
Both requests identify the invalid field
Data
none
Bound to
services-commerce:modules/catalog/tests/e2e/product-categories.e2e.spec.js#answers 400 to a parent_id: the hierarchy is reserved
services-commerce:modules/catalog/tests/e2e/product-categories.e2e.spec.js#answers 400 to a default sort outside the catalog sorts, naming the property
services-commerce:modules/catalog/tests/integration/db/catalog-tables.table.integration.spec.js#refuses a category hierarchy: parent_id is reserved and held NULL
Source
services-commerce:modules/catalog/tests/e2e/product-categories.e2e.spec.js#answers 400 to a parent_id: the hierarchy is reserved
02 Membership replacement rejects repeats and reconciles shelvesapinegativetest
Proves
BR-CAP-COM-CAT-005-04
Preconditions
Books has three product memberships
Steps
Repeat a product in category replacement, then change a product’s category selection
Expected
The repeat fails; new selections append memberships and omissions remove them
Data
Three products
Bound to
services-commerce:modules/catalog/tests/integration/services/persistence/product-categories.integration.spec.js#refuses a list naming one product twice (400) and an unknown category (404)
services-commerce:modules/catalog/tests/integration/services/persistence/product-categories.integration.spec.js#states the shelves one product sits on: appended last where new, removed where no longer named
Source
services-commerce:modules/catalog/tests/integration/services/persistence/product-categories.integration.spec.js#refuses a list naming one product twice (400) and an unknown category (404)
03 Dependent stores keep a category from deletionapinegativetest
Proves
BR-CAP-COM-CAT-005-05 AS-JNY-COM-CAT-001-04
Preconditions
Stores refer to the category through home or assortment settings
Steps
Attempt category deletion
Expected
The refusal reports the dependent count and at most five store names
Data
Six stores
Bound to
services-commerce:modules/catalog/tests/integration/services/persistence/product-categories.integration.spec.js#is refused while stores name it in their assortment, naming five of them and the count
services-commerce:modules/catalog/tests/e2e/product-categories.e2e.spec.js#refuses the delete of a category a store names, 409 category_in_use naming the store, and deletes it once the store has moved on
Source
services-commerce:modules/catalog/tests/integration/services/persistence/product-categories.integration.spec.js#is refused while stores name it in their assortment, naming five of them and the count
04 Unreadable category images prevent creationapinegativetest
Proves
BR-CAP-COM-CAT-005-07
Preconditions
The image reference cannot be read by the asset pipeline
Steps
Create a category using that reference
Expected
Creation fails without retaining the category
Data
none
Bound to
services-commerce:modules/catalog/tests/e2e/product-categories.e2e.spec.js#answers 400 to a picture the pipeline cannot read as a file, creating nothing
services-commerce:modules/catalog/tests/integration/services/persistence/product-categories.integration.spec.js#refuses a picture reference the pipeline cannot read as a file (400), writing nothing
Source
services-commerce:modules/catalog/tests/e2e/product-categories.e2e.spec.js#answers 400 to a picture the pipeline cannot read as a file, creating nothing
05 Category replacement detects stale versionsapinegativetest
Proves
BR-CAP-COM-CAT-005-08
Preconditions
The saved category is at version two
Steps
Replace from version one
Expected
A version conflict prevents the change
Data
none
Bound to
services-commerce:modules/catalog/tests/e2e/product-categories.e2e.spec.js#replaces at the version read and refuses the stale version 409
Source
services-commerce:modules/catalog/tests/e2e/product-categories.e2e.spec.js#replaces at the version read and refuses the stale version 409
06 Category management requires write authorityapinegativetest
Proves
BR-CAP-COM-CAT-005-09
Preconditions
The caller has read permissions alone
Steps
Attempt a category write
Expected
The request fails permission evaluation
Data
Read-exclusively persona
Bound to
services-commerce:modules/catalog/tests/e2e/catalog-security.e2e.spec.js#refuses a read-only principal every write, 403 permission_missing
Source
services-commerce:modules/catalog/tests/e2e/catalog-security.e2e.spec.js#refuses a read-only principal every write, 403 permission_missing

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.