ATS-CRM-ACT-010 Record and maintain a piece of work: Capability Test Specification
Markdown Design / CRM / Activities, Follow-ups and Task Work / Managing Task Work / Capability Test Specification Record and maintain a piece of work: Capability Test Specification Coverage Category coverage counts specified proof. Unbound cases remain proposed; registered assertions do not establish a passing run.
An open task concerns a contact and belongs to a queue. Assign a colleague, edit its title, complete it and read the task and both timeline sections.
The interaction scenario names the capabilities and rules it exercises. The coverage finding retains incomplete permission combinations and failure variants.
Show evidence (sources, provenance, origins, pinned commits)Coverage Rule covered Transition covered Validation covered Permission covered Edge gap: FND-CRM-ACT-056 Failure covered Boundary covered Concurrency covered Invariant covered Interaction covered Test Scenarios 18 scenarios proving CAP-CRM-ACT-010 ; 12 bound to an existing test.
02 Require an existing task classification validation api negative test
Proves BR-CAP-CRM-ACT-010-02 Preconditions The workspace can be addressed for task creation. Steps Create without a type and with an unknown type. Expected Both requests fail validation. Data Each run creates and isolates the records it needs. Bound to Source services-crm:modules/tasks/tests/e2e/tasks.e2e.spec.js #answers 400 for a task with no type, since every task is of some kind 05 Reject impossible due days validation api negative test
Proves BR-CAP-CRM-ACT-010-05 Preconditions A valid task type is available. Steps Create work due on February 30. Expected The response identifies the invalid due-date field. Data Each run creates and isolates the records it needs. Bound to Source services-crm:modules/tasks/tests/e2e/tasks.e2e.spec.js #answers 400 naming the field for a due date that is not a day of the calendar 10 Preserve partial edits and reject stale replacement concurrency api negative test
Proves BR-CAP-CRM-ACT-010-10 Preconditions A saved task has a current version and optional details. Steps Patch one field, replace using an older version and submit a mismatched task reference. Expected The patch preserves other fields, stale replacement conflicts and the mismatched reference fails. Data Each run creates and isolates the records it needs. Bound to Source services-crm:modules/tasks/tests/e2e/tasks.e2e.spec.js #and leaves what the patch said nothing about as it was 11 Apply task update and deletion locks failure api negative test
Proves BR-CAP-CRM-ACT-010-11 Preconditions Separate tasks have full and deletion-only locks. Steps Try prohibited editing and deletion. Expected The relevant locks cause refusals and preserve the records. Data Each run creates and isolates the records it needs. Bound to Source services-crm:modules/tasks/tests/e2e/tasks.e2e.spec.js #refuses deleting a task locked against deletes 14 Persist task from Open to Deleted transition api proposed
Proves INV-DOM-CRM-ACT-003-02 INV-DOM-CRM-ACT-003-10 INV-DOM-CRM-ACT-003-12 Preconditions Run-owned task has Open standing. Neither supported lock is set; deletion accepts no read version. Steps A caller requests task deletion. Read the resulting record and affected projections after commit. Expected The resulting task has Deleted standing. The task row is removed; enabled attention resolves any overdue item within the deletion transaction. Data Run-owned records in an isolated workspace; fixed clock for calendar checks. Source services-crm:modules/tasks/tests/e2e/tasks.e2e.spec.js #refuses deleting a task locked against deletes 15 Persist task from Completed to Deleted transition api proposed
Proves INV-DOM-CRM-ACT-003-02 INV-DOM-CRM-ACT-003-10 INV-DOM-CRM-ACT-003-12 Preconditions Run-owned task has Completed standing. Neither supported lock is set; deletion accepts no read version. Steps A caller requests task deletion. Read the resulting record and affected projections after commit. Expected The resulting task has Deleted standing. The task row is removed; enabled attention resolves any overdue item within the deletion transaction. Data Run-owned records in an isolated workspace; fixed clock for calendar checks. Source services-crm:modules/tasks/services/persistence/tasks.ts :deleteTask 16 Persist task from Waiting for someone else to Deleted transition api proposed
Proves INV-DOM-CRM-ACT-003-02 INV-DOM-CRM-ACT-003-10 INV-DOM-CRM-ACT-003-12 Preconditions Run-owned task has Waiting for someone else standing. Neither supported lock is set; deletion accepts no read version. Steps A caller requests task deletion. Read the resulting record and affected projections after commit. Expected The resulting task has Deleted standing. The task row is removed; enabled attention resolves any overdue item within the deletion transaction. Data Run-owned records in an isolated workspace; fixed clock for calendar checks. Source services-crm:modules/tasks/services/persistence/tasks.ts :deleteTask 17 Persist task from Deferred to Deleted transition api proposed
Proves INV-DOM-CRM-ACT-003-02 INV-DOM-CRM-ACT-003-10 INV-DOM-CRM-ACT-003-12 Preconditions Run-owned task has Deferred standing. Neither supported lock is set; deletion accepts no read version. Steps A caller requests task deletion. Read the resulting record and affected projections after commit. Expected The resulting task has Deleted standing. The task row is removed; enabled attention resolves any overdue item within the deletion transaction. Data Run-owned records in an isolated workspace; fixed clock for calendar checks. Source services-crm:modules/tasks/services/persistence/tasks.ts :deleteTask 18 Persist task from Cancelled to Deleted transition api proposed
Proves INV-DOM-CRM-ACT-003-02 INV-DOM-CRM-ACT-003-10 INV-DOM-CRM-ACT-003-12 Preconditions Run-owned task has Cancelled standing. Neither supported lock is set; deletion accepts no read version. Steps A caller requests task deletion. Read the resulting record and affected projections after commit. Expected The resulting task has Deleted standing. The task row is removed; enabled attention resolves any overdue item within the deletion transaction. Data Run-owned records in an isolated workspace; fixed clock for calendar checks. Source services-crm:modules/tasks/services/persistence/tasks.ts :deleteTask ← Previous Capability Test Specification ATS-CRM-ACT-009 · Preserve the baseline activity catalog without replacing customer choices: Capability Test Specification Next Capability Test Specification → ATS-CRM-ACT-011 · Complete, cancel and reopen work with clear attribution: Capability Test Specification