ATS-CRM-ACT-003Correct or delete an activity with protection against stale edits: Acceptance Test Set
MarkdownCorrect or delete an activity with protection against stale edits: Acceptance Test Set
Coverage
Bound scenarios identify existing assertions; unbound scenarios remain proposed proof. Static inspection does not establish a passing execution.
Test Scenarios
8 scenarios proving CAP-CRM-ACT-003; 8 bound to an existing test.
01 Reject stale edits and missing versionsapinegativetest
- Proves
BR-CAP-CRM-ACT-003-01 - Preconditions
- An activity has advanced to its second version.
- Steps
- Replace and patch using the first version, then omit the patch version.
- Expected
- Stale requests conflict, the missing version fails validation, and the saved record remains.
- Data
- Each run creates and isolates the records it needs.
- Bound to
- Source
- services-crm:modules/activities/tests/e2e/activities.e2e.spec.js#refuses a replace of a version it has moved on from: 409
02 Preserve unnamed fields in a partial editapitest
- Proves
BR-CAP-CRM-ACT-003-02 - Preconditions
- A meeting contains all optional details.
- Steps
- Change only its subject, then explicitly clear its end.
- Expected
- The first patch changes only subject and the next clears only end.
- Data
- Each run creates and isolates the records it needs.
- Bound to
- Source
- services-crm:modules/activities/tests/e2e/activities.e2e.spec.js#leaves every property the patch omits as it was: duration, end, body, external id, owner and links
03 Reject incomplete replacement before writingapinegativetest
- Proves
BR-CAP-CRM-ACT-003-03 - Preconditions
- The saved meeting includes duration.
- Steps
- Replace without duration, then with complete replacement content.
- Expected
- The incomplete request identifies duration without changing the record; the complete request succeeds.
- Data
- Each run creates and isolates the records it needs.
- Bound to
- Source
- services-crm:modules/activities/tests/e2e/activities.e2e.spec.js#refuses a replacement missing a property: 400 naming it