Skip to content

ATS-COM-CAT-010Configure qualifying price audiences: Acceptance Test Set

Markdown

ATS-COM-CAT-010

Configure qualifying price audiences: Acceptance Test Set

Markdown
  • DocumentProposed

Planning

Proves capability
CAP-COM-CAT-010

KindAcceptance test setProduct areaCommerceModuleCatalog and Selling ConfigurationRevision1

Read atservices-commerce c8b66a98react-console baf6dae3

Test Scenarios

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

01 Built-in audiences retain identity and kindapinegativetest
Proves
BR-CAP-COM-CAT-010-01
Preconditions
A fresh workspace initializes audiences
Steps
List audiences, change Member’s kind and delete Standard
Expected
Built-in ranks are present and both prohibited mutations fail
Data
none
Bound to
services-commerce:modules/pricing/tests/e2e/pricing-audiences.e2e.spec.js#lists standard for everyone at rank 0 and member by eligibility at rank 10, built in, member shown to visitors, with no binding yet
services-commerce:modules/pricing/tests/e2e/pricing-audiences.e2e.spec.js#renames a built-in and keeps it built in, and refuses it another kind, 409 audience_built_in
services-commerce:modules/pricing/tests/e2e/pricing-audiences.e2e.spec.js#deletes a tenant’s own audience, after which it reads 404; refuses a built-in’s delete, 409 audience_built_in
Source
services-commerce:modules/pricing/tests/e2e/pricing-audiences.e2e.spec.js#lists standard for everyone at rank 0 and member by eligibility at rank 10, built in, member shown to visitors, with no binding yet
02 Audience rank and normalized name conflicts are refusedapinegativetest
Proves
BR-CAP-COM-CAT-010-02 BR-CAP-COM-CAT-010-03
Preconditions
Member occupies rank ten and its name
Steps
Create another audience at ten and under a spaced case variant of Member
Expected
Both refusals identify the conflict
Data
none
Bound to
services-commerce:modules/pricing/tests/e2e/pricing-audiences.e2e.spec.js#answers 400 with the problem code audience_rank_taken to a rank another audience holds, creating nothing
services-commerce:modules/pricing/tests/integration/services/persistence/pricing-audiences.integration.spec.js#refuses a create to the same name in other letter case and spacing, 409 audience_name_taken naming the existing audience
Source
services-commerce:modules/pricing/tests/e2e/pricing-audiences.e2e.spec.js#answers 400 with the problem code audience_rank_taken to a rank another audience holds, creating nothing
03 Audience qualification fields follow the chosen kindapinegativetest
Proves
BR-CAP-COM-CAT-010-04
Preconditions
Audience creation can select different kinds
Steps
Omit operations for an operation audience and bind eligibility to an everyone audience
Expected
Both inconsistent definitions fail
Data
none
Bound to
services-commerce:modules/pricing/tests/integration/db/member-pricing-tables.table.integration.spec.js#refuses an operation audience without an operation, and operations on another kind, by pricing_audiences_operations_check
services-commerce:modules/pricing/tests/integration/db/member-pricing-tables.table.integration.spec.js#refuses a binding on an audience that is not an eligibility one, by pricing_audiences_binding_check
Source
services-commerce:modules/pricing/tests/integration/db/member-pricing-tables.table.integration.spec.js#refuses an operation audience without an operation, and operations on another kind, by pricing_audiences_operations_check
04 Deactivation preserves prices while removing qualificationapinegativetest
Proves
BR-CAP-COM-CAT-010-05 BR-CAP-COM-CAT-010-06 AS-JNY-COM-CAT-002-01
Preconditions
Retiree is referenced by a product price
Steps
Attempt deletion, deactivate the audience and price the buyer
Expected
Deletion reports usage; deactivation succeeds and pricing excludes the inactive audience
Data
A product price row
Bound to
services-commerce:modules/pricing/tests/e2e/pricing-audiences.e2e.spec.js#refuses the delete 409 audience_in_use with the sentence and the details
services-commerce:modules/pricing/tests/integration/services/inputs/pricing-inputs.integration.spec.js#loads the active audiences in rank order, the inactive left out, and the period each schedule is in at the instant
Source
services-commerce:modules/pricing/tests/e2e/pricing-audiences.e2e.spec.js#refuses the delete 409 audience_in_use with the sentence and the details
05 Unbound eligibility produces a warning rather than qualificationunittest
Proves
BR-CAP-COM-CAT-010-07
Preconditions
An eligibility audience has no binding selected
Steps
Resolve qualification for a buyer
Expected
The audience is absent from qualification and identified in a warning
Data
none
Bound to
services-commerce:modules/pricing/tests/unit/engine/step-2-audience-resolution.spec.js#warns of an audience with no binding, and holds nobody for it; a binding the batch did not answer is simply not held
Source
services-commerce:modules/pricing/tests/unit/engine/step-2-audience-resolution.spec.js#warns of an audience with no binding, and holds nobody for it; a binding the batch did not answer is simply not held
06 Audience writes require permission and current versionapinegativetest
Proves
BR-CAP-COM-CAT-010-10 BR-CAP-COM-CAT-010-11
Preconditions
A reader and version-two audience are available
Steps
Write as the reader and replace from version one
Expected
Permission and concurrency refusals prevent both changes
Data
Read-exclusively persona
Bound to
services-commerce:modules/pricing/tests/e2e/pricing-configuration-security.e2e.spec.js#is refused the creates, replacements and deletes, 403 permission_missing, each leaving the record as it was
services-commerce:modules/pricing/tests/e2e/pricing-audiences.e2e.spec.js#answers 409 to a stale version, 400 to a body whose id is not the path’s, and 400 to a replacement without its version
Source
services-commerce:modules/pricing/tests/e2e/pricing-configuration-security.e2e.spec.js#is refused the creates, replacements and deletes, 403 permission_missing, each leaving the record as it was
07 Audience editing returns to the saved viewbrowsertest
Proves
AS-JNY-COM-CAT-002-02
Preconditions
The browser uses Commerce mock fixtures
Steps
Open an audience, edit it and save
Expected
The full-width view presents the changed information
Data
Console mock
Bound to
react-console:e2e/mock/commerce-view-edit.mock.spec.ts#open an audience on a full-width view, edit it and save back to the view
Source
react-console:e2e/mock/commerce-view-edit.mock.spec.ts#open an audience on a full-width view, edit it and save back to 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.