Skip to content

ATS-COM-CAT-008Present the store’s available products: Acceptance Test Set

Markdown

ATS-COM-CAT-008

Present the store’s available products: Acceptance Test Set

Markdown
  • DocumentProposed

Planning

Proves capability
CAP-COM-CAT-008

KindAcceptance test setProduct areaCommerceModuleCatalog and Selling ConfigurationRevision1

Read atservices-commerce c8b66a98react-console baf6dae3

Test Scenarios

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

01 Visibility removes inactive or unavailable productsunittest
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
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)
Source
services-commerce:modules/catalog/tests/unit/storefront/storefront-visibility.spec.js#removes a retired or inactive product
02 Eligibility changes visibility after authenticationapitest
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
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
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 presentationsapitest
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
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)
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 quantityunittest
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
services-commerce:modules/catalog/tests/unit/storefront/storefront-availability.spec.js#shows the units on hand when the listing shows its remaining count
services-commerce:modules/catalog/tests/unit/storefront/storefront-availability.spec.js#shows no count when the listing does not show its remaining count
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 absenceapinegativetest
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
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
services-commerce:modules/catalog/tests/integration/services/storefront/storefront-listings.integration.spec.js#opens an unlisted product by its page, and is answered 404 for a draft and for a product another store does not sell
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 workspaceapinegativetest
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
services-commerce:modules/catalog/tests/e2e/catalog-security.e2e.spec.js#is served with no security context, acting in the path’s tenant alone
services-commerce:modules/catalog/tests/e2e/catalog-security.e2e.spec.js#is refused by the tenant access gate in a tenant Platform has no row for (403 TenantUnavailable)
services-commerce:modules/catalog/tests/e2e/catalog-security.e2e.spec.js#ignores a signed context it is handed: no diagnosis, the public prices
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

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.