Skip to content

ATS-CRM-REG-002Retire regions while preserving their references: Acceptance Test Set

Markdown

ATS-CRM-REG-002

Retire regions while preserving their references: Acceptance Test Set

Markdown
  • DocumentProposed

Planning

Proves capability
CAP-CRM-REG-002

KindAcceptance test setProduct areaCRMModuleRegionsRevision2

Read atservices-crm a8d1364freact-console baf6dae3

Test Scenarios

6 scenarios proving CAP-CRM-REG-002; 4 bound to an existing test.

01 References block removalapinegativetest
Proves
BR-CAP-CRM-REG-002-01 AS-JNY-CRM-REG-004-01
Preconditions
Separate regions are referenced by a contact, an organization and a rule.
Steps
Attempt deletion of each referenced region.
Expected
Every attempt is refused with its dependency identified, leaving the regions present.
Data
Three regional targets, each with its own reference.
Bound to
services-crm:modules/regions/tests/integration/db/regions.table.integration.spec.js#references › refuses to delete a region a contact is in, naming what uses it
services-crm:modules/regions/tests/integration/db/regions.table.integration.spec.js#references › refuses to delete a region an organization is in
services-crm:modules/regions/tests/integration/db/regions.table.integration.spec.js#references › refuses to delete a region an assignment rule names
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 409 to a delete of a region in use
services-crm:tests/e2e/dev/regions.dev.spec.ts#refuses to delete a region in use
Source
services-crm:modules/regions/tests/integration/db/regions.table.integration.spec.js#references › refuses to delete a region a contact is in, naming what uses it
02 Unused regions can be removed permanentlyapitest
Proves
BR-CAP-CRM-REG-002-02
Preconditions
A region has no references.
Steps
Delete it and request it again.
Expected
Deletion succeeds and the subsequent read returns not found.
Data
An unreferenced catalogue entry.
Bound to
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#leaves nothing to read after the delete: a later GET answers 404
Source
services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#deletes a region nothing uses
03 Delete authority is separate from edit authoritybrowsernegativetest
Proves
BR-CAP-CRM-REG-002-03
Preconditions
A user can create and update regions but cannot delete them.
Steps
Request removal through the service and inspect the region menu.
Expected
Deletion requires the delete key and the menu supplies no usable Delete action.
Data
An ordinary user-tier identity.
Bound to
services-crm:tests/unit/regions-authorization.spec.ts#requires crm.regions.delete to delete a region
react-console:components/regions/__tests__/regions-row-menu.test.tsx#the Regions row menu › does not let somebody who may manage regions but not delete them press Delete
Source
services-crm:tests/unit/regions-authorization.spec.ts#requires crm.regions.delete to delete a region
04 Ordinary replacement can alter a delete lockapinegativeproposed
Proves
BR-CAP-CRM-REG-002-04 BR-CAP-CRM-REG-002-05
Preconditions
One region has a delete lock and another has a full lock.
Steps
Delete the first, replace the second and replace the first without its lock.
Expected
Deletion and the full-lock update are refused; the ordinary replacement clears the delete lock.
Data
Regional examples with deletion and full locks.
Source
services-crm:modules/regions/services/persistence/regions.ts:updateRegionRow, deleteRegionRow
05 Deactivation distinguishes referenced targetsapiproposed
Proves
BR-CAP-CRM-REG-002-07
Preconditions
Assignment is enabled and the current generation has a successful run.
Steps
Deactivate a target of an enabled rule and read settings; repeat with an unreferenced region.
Expected
The referenced target raises recalculation need and the unrelated deactivation records no policy change.
Data
A pair of regional definitions and one policy entry.
Source
FND-CRM-REG-021
06 Disabled targets remain assignablebrowsertest
Proves
BR-CAP-CRM-REG-002-08
Preconditions
An enabled state rule points to an inactive region.
Steps
Create a contact in that state and allow assignment to run.
Expected
The contact receives the inactive target region.
Data
Address input in New York.
Bound to
Source
react-console:acceptance/crm/playwright/journeys/configuration/CRM-ACC-0361.spec.ts#CRM-ACC-0361

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.