Skip to content

ATS-COM-CAT-003Configure a store’s offered assortment: Acceptance Test Set

Markdown

ATS-COM-CAT-003

Configure a store’s offered assortment: Acceptance Test Set

Markdown
  • DocumentProposed

Planning

Proves capability
CAP-COM-CAT-003

KindAcceptance test setProduct areaCommerceModuleCatalog and Selling ConfigurationRevision1

Read atservices-commerce c8b66a98react-console baf6dae3

Test Scenarios

7 scenarios proving CAP-COM-CAT-003; 7 bound to an existing test.

01 Store creation requires an existing policyapinegativetest
Proves
BR-CAP-COM-CAT-003-01
Preconditions
Creation requests have no valid policy selected
Steps
Submit an omitted policy and an unknown policy
Expected
Both requests fail with the policy field identified
Data
none
Bound to
services-commerce:modules/configuration/tests/e2e/stores.e2e.spec.js#answers 400 to a store without an ordering profile
services-commerce:modules/configuration/tests/e2e/stores.e2e.spec.js#answers 400 to an ordering profile the tenant does not have, naming the property
Source
services-commerce:modules/configuration/tests/e2e/stores.e2e.spec.js#answers 400 to a store without an ordering profile
02 Store currency cannot be supplied independentlyapinegativetest
Proves
BR-CAP-COM-CAT-003-02
Preconditions
A store creation request is otherwise valid
Steps
Add a currency field to the request
Expected
The unsupported field is rejected
Data
none
Bound to
services-commerce:modules/configuration/tests/e2e/stores.e2e.spec.js#answers 400 to a currency or a business unit on the body: the store carries neither since D23
Source
services-commerce:modules/configuration/tests/e2e/stores.e2e.spec.js#answers 400 to a currency or a business unit on the body: the store carries neither since D23
03 Assortment and home-category references remain validapinegativetest
Proves
BR-CAP-COM-CAT-003-04 BR-CAP-COM-CAT-003-05
Preconditions
Books belongs to this workspace and Toys to another
Steps
Reference Toys, choose Apparel under only Books, and choose Books under an exclusion of Books
Expected
Each invalid selection fails on its relevant field
Data
Two workspaces
Bound to
services-commerce:modules/configuration/tests/integration/services/persistence/stores.integration.spec.js#refuses a home category outside an "only" rule’s categories, 400 naming home_category_id
services-commerce:modules/configuration/tests/integration/services/persistence/stores.integration.spec.js#refuses a home category an "all_but" rule leaves out, 400 naming home_category_id
Source
services-commerce:modules/configuration/tests/integration/services/persistence/stores.integration.spec.js#refuses another tenant’s category as unknown
04 Checkout references prevent store deletionapinegativetest
Proves
BR-CAP-COM-CAT-003-08
Preconditions
A checkout references Bookstore
Steps
Request removal of Bookstore
Expected
The refusal identifies the retained store
Data
A checkout
Bound to
Source
services-commerce:modules/configuration/tests/integration/services/persistence/stores.integration.spec.js#refuses deleting a store a checkout was opened in, naming the store
05 Stale store replacement failsapinegativetest
Proves
BR-CAP-COM-CAT-003-11
Preconditions
The stored version is two
Steps
Submit a replacement based on version one
Expected
The version conflict prevents replacement
Data
none
Bound to
services-commerce:modules/configuration/tests/e2e/stores.e2e.spec.js#replaces a store at the version read, the purchasing roles with it, and answers 409 to the stale version after
Source
services-commerce:modules/configuration/tests/e2e/stores.e2e.spec.js#replaces a store at the version read, the purchasing roles with it, and answers 409 to the stale version after
06 Store writes require administrator authorityapinegativetest
Proves
BR-CAP-COM-CAT-003-12
Preconditions
A caller holds only store read permission
Steps
Attempt creating, replacing and deleting a store
Expected
All writes fail permission checks
Data
Read-exclusively persona
Bound to
services-commerce:modules/configuration/tests/e2e/configuration-security.e2e.spec.js#is refused the deletes, 403 permission_missing, the records still there
Source
services-commerce:modules/configuration/tests/e2e/configuration-security.e2e.spec.js#is refused the creates, 403 permission_missing
07 Store view reflects a changed sortbrowsertest
Proves
AS-JNY-COM-CAT-001-03
Preconditions
Commerce screens use mocked records
Steps
Create a store, open its view, change the default sort and save
Expected
The view displays the saved sort
Data
Console mock
Bound to
react-console:e2e/mock/commerce-view-edit.mock.spec.ts#create a store, land on its view, edit the default sort, save, and see it on the view
Source
react-console:e2e/mock/commerce-view-edit.mock.spec.ts#create a store, land on its view, edit the default sort, save, and see it on the view

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.