Skip to content

ATS-COM-CAT-008Present the store’s available products: Capability Test Specification

Markdown

ATS-COM-CAT-008

Present the store’s available products: Capability Test Specification

Markdown
  • DocumentProposed
  • Product intentProposed

KindAcceptance test setProduct areaCommerceModuleCatalog and Selling ConfigurationRevision2

Read atservices-commerce c8b66a98react-console baf6dae3

Coverage

  • Rule covered
  • Transition gap: FND-COM-CAT-062
  • Validation gap: FND-COM-CAT-062
  • Permission gap: FND-COM-CAT-062
  • Edge covered
  • Failure gap: FND-COM-CAT-062
  • Boundary covered
  • Concurrency gap: FND-COM-CAT-062
  • Invariant gap: FND-COM-CAT-062
  • Interaction covered

Test Scenarios

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

01 Visibility removes inactive or unavailable productsruleunittest
Proves
BR-CAP-COM-CAT-008-01
Preconditions
Products are retired, outside sale dates or hidden from portal display
Steps
Evaluate storefront visibility
Expected
Each exclusion returns its reason
Data
none
Bound to
Source
services-commerce:modules/catalog/tests/unit/storefront/storefront-visibility.spec.js#removes a retired or inactive product
02 Eligibility changes visibility after authenticationinteractionapitest
Proves
BR-CAP-COM-CAT-008-02
Preconditions
The dinner requires membership eligibility
Steps
Browse anonymously and as eligible and ineligible contacts
Expected
Anonymous browsing retains a warning, eligible browsing retains the item and ineligible browsing excludes it
Data
Fixture eligibility
Bound to
Source
services-commerce:modules/catalog/tests/integration/services/storefront/storefront-listings.integration.spec.js#is not evaluated for eligibility: a bound product is shown, flagged that signing in may change its availability
03 Public and member browsing use different price presentationsinteractionapitest
Proves
BR-CAP-COM-CAT-008-03 BR-CAP-COM-CAT-008-04 AS-JNY-COM-CAT-003-01
Preconditions
Member pricing is marked for public display
Steps
Read as visitor and member
Expected
The visitor sees Standard 25 dollars and Member 20 dollars with a notice; the member receives 20-dollar pricing
Data
Priced products
Bound to
Source
services-commerce:modules/catalog/tests/e2e/storefront.e2e.spec.js#shows the audiences marked for public display beside the Standard price (D10): the Members price 2000, with its audience
04 Remaining display restores the shelf quantityruleunittest
Proves
BR-CAP-COM-CAT-008-07
Preconditions
The listing enables counts and has three units on hand
Steps
Request availability presentation
Expected
The response reports three remaining alongside the availability word
Data
none
Bound to
Source
services-commerce:modules/catalog/tests/unit/storefront/storefront-availability.spec.js#shows the units on hand when the listing shows its remaining count
05 Closed stores and excluded pages return appropriate absenceedgeapinegativetest
Proves
BR-CAP-COM-CAT-008-08 AS-JNY-COM-CAT-003-02
Preconditions
A closed store and draft listing exist
Steps
Read the closed store, an unknown store and the draft page
Expected
The list is empty and both unknown or excluded pages are not found
Data
none
Bound to
Source
services-commerce:modules/catalog/tests/e2e/storefront.e2e.spec.js#answers an empty page of the closed store, 404 for an unknown store, and refuses a bad query 400
06 Public browsing isolates the addressed workspaceboundaryapinegativetest
Proves
BR-CAP-COM-CAT-008-10
Preconditions
Fixtures provide two workspaces and an unavailable workspace
Steps
Read without context, with signed context and at an unavailable workspace
Expected
Public reading succeeds independently of signed context, and unavailable workspace access fails
Data
none
Bound to
Source
services-commerce:modules/catalog/tests/e2e/catalog-security.e2e.spec.js#is served with no security context, acting in the path’s tenant alone
07 Shelf membership changes the browsable assortmentinteractionapiproposed
Proves
BR-CAP-COM-CAT-005-04 BR-CAP-COM-CAT-008-01
Preconditions
A store admits only Books and a published product belongs to Apparel.
Steps
Browse; assign the product to Books; browse; remove its Books membership and browse again.
Expected
The product appears after assignment and disappears after removal.
Data
Run-owned workspace and records; fixed clock where dates are exercised.
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),services-commerce:modules/catalog/tests/unit/storefront/storefront-visibility.spec.js#removes a product not yet on sale, and one whose sale has ended (the end exclusive)
08 Browsing and quoting use the same buyer contextinteractionapiproposed
Proves
BR-CAP-COM-CAT-013-08 BR-CAP-COM-CAT-008-03 BR-CAP-COM-CAT-008-04
Preconditions
Standard and a publicly displayed Member price exist.
Steps
Browse and quote anonymously, then repeat as the member without staff assumptions.
Expected
Public results show public alternatives; signed results use the member’s identity.
Data
Run-owned workspace and records; fixed clock where dates are exercised.
Source
services-commerce:modules/pricing/tests/e2e/price-quotes.e2e.spec.js#refuses a body that names a subject, an acting contact, a recipient or a cart: nothing about a person is read anonymously,services-commerce:modules/catalog/tests/e2e/storefront.e2e.spec.js#shows the audiences marked for public display beside the Standard price (D10): the Members price 2000, with its audience,services-commerce:modules/catalog/tests/e2e/storefront.e2e.spec.js#prices a portal member as themselves (the recorded member: the member price, nothing signing in could change)

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.