Test Scenarios
18 scenarios proving CAP-CRM-ENT-005; 9 bound to an existing test.
02 One primary e-mail per active contact; released by inactive and deceasedinvariantbrowsernegativetest
- Proves
BR-CAP-CRM-ENT-005-02 INV-DOM-CRM-ENT-001-05 - Preconditions
- Prepare contacts holding primary and secondary addresses in several statuses.
- Steps
- Write a second primary; a secondary copy; take a deceased contact's address; reactivate the deceased.
- Expected
- Rejected; accepted; accepted; rejected naming the address.
- Data
- No additional fixtures.
- Bound to
- Source
- services-crm:modules/entities/tests/integration/db/contact-email-addresses.table.integration.spec.js#refuses to make an inactive contact active while another contact holds its primary address
09 the mailing address follows the season only when markedruleapitest
- Proves
BR-CAP-CRM-ENT-005-09 - Preconditions
- Prepare a contact with a preferred and a seasonal address.
- Steps
- Read the mailing address in and out of season, marked and unmarked.
- Expected
- The seasonal one only in season and marked; else the preferred.
- Data
- Use workspace date in and out of season.
- Bound to
- Source
- services-crm:modules/entities/tests/e2e/contacts.e2e.spec.js#answers the seasonal address in season when the contact marks it, with the workspace date
18 Exercise every declared authority independentlypermissionapinegativeproposed
- Proves
BR-CAP-CRM-ENT-003-07 BR-CAP-CRM-ENT-003-09 - Preconditions
- An eligible record and configuration fixture exist for each operation; the caller can reach only the run’s workspace.
- Steps
- For each declared permission, execute its matching operation with that permission, then without it while retaining the other required grants. Read affected records after every refused mutation.
- Expected
- The authorized case reaches the operation; the missing-grant case is refused and preserves saved data. Record access alone does not authorize the other declared actions.
- Data
- Run-owned records and configuration in an isolated workspace.
- Source
- services-crm:aws/crm.service.ts:ApplicationPermissions; services-crm:modules/entities/aws/api/entities.routes.ts