ATS-CRM-REG-004Build the geographic assignment policy: Acceptance Test Set
MarkdownBuild the geographic assignment policy: Acceptance Test Set
Coverage
Test Scenarios
8 scenarios proving CAP-CRM-REG-004; 7 bound to an existing test.
02 Criteria lists require valid bounded contentapinegativetest
- Proves
BR-CAP-CRM-REG-004-02 - Preconditions
- The workspace contains a target region.
- Steps
- Submit missing postal ranges, empty states or countries, too many states and a range with a blank endpoint.
- Expected
- Each invalid list is refused and no replacement policy is committed.
- Data
- Criteria lists constructed at the required boundary sizes.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 400 for a postal code rule with no ranges
03 Rule normalization removes unrelated criteriaapitest
- Proves
BR-CAP-CRM-REG-004-03 - Preconditions
- A target region exists.
- Steps
- Create a state rule also carrying a country restriction and postal ranges.
- Expected
- Only the state criteria remain on the saved rule.
- Data
- A single regional definition.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#drops a country given on a rule that is not a postal code rule, as it drops the other types’ lists
04 Postal restrictions use valid country codesapinegativetest
- Proves
BR-CAP-CRM-REG-004-04 - Preconditions
- A target region exists.
- Steps
- Create postal rules with a lowercase two-letter code and an invalid three-letter code.
- Expected
- The valid code is stored in capitals and the invalid code is refused.
- Data
- A single regional definition.
- Bound to
- Source
- services-crm:modules/regions/tests/e2e/regions.e2e.spec.js#answers 400 for a country that is not an ISO 3166-1 alpha-2 code