Skip to content

ATS-PFM-ELG-003Try a rule against real records: Capability Test Specification

Markdown

ATS-PFM-ELG-003

Try a rule against real records: Capability Test Specification

Markdown
  • DocumentProposed

KindAcceptance test setProduct areaPlatformModuleEligibility, Responsibilities and AttentionRevision3

Read atservices-platform ad3f6a65react-console baf6dae3

Coverage

  • Rule covered
  • Transition gap: FND-PFM-ELG-055
  • Validation covered
  • Permission gap: FND-PFM-ELG-055
  • Edge gap: FND-PFM-ELG-055
  • Failure gap: FND-PFM-ELG-055
  • Boundary covered
  • Concurrency gap: FND-PFM-ELG-055
  • Invariant gap: FND-PFM-ELG-055
  • Interaction covered

Test Scenarios

7 scenarios proving CAP-PFM-ELG-003; 5 bound to an existing test.

01 Keep trials out of historyinvariantapitest
Proves
BR-CAP-PFM-ELG-003-01
Preconditions
A rule has a released version and draft.
Steps
Test both against a contact and inspect decision history.
Expected
Both results include full explanations without adding retained decisions.
Data
No fixtures beyond the described setup.
Bound to
services-platform:modules/eligibility/tests/e2e/eligibility-evaluate.e2e.spec.js#answers the version’s decision with the trace, never recorded
services-platform:modules/eligibility/tests/integration/services/evaluate/hosted-evaluate.integration.spec.js#answers the draft’s decision with the full trace and the administrator’s explanation, never recorded
Source
services-platform:modules/eligibility/tests/e2e/eligibility-evaluate.e2e.spec.js#answers the version’s decision with the trace, never recorded
02 Check subject visibility for trialspermissionapinegativetest
Proves
BR-CAP-PFM-ELG-003-02
Preconditions
A custom role reads rules but cannot read contacts.
Steps
Test a contact and separately evaluate a binding.
Expected
The subject trial is denied while binding evaluation returns an answer.
Data
No fixtures beyond the described setup.
Bound to
services-platform:modules/eligibility/tests/e2e/eligibility-evaluate.e2e.spec.js#refuses a caller who may not open the primary subject’s record, 403
Source
services-platform:modules/eligibility/tests/e2e/eligibility-evaluate.e2e.spec.js#refuses a caller who may not open the primary subject’s record, 403
03 Refuse unavailable trial expressionsvalidationapinegativetest
Proves
BR-CAP-PFM-ELG-003-03
Preconditions
One rule has no draft and another has an invalid draft.
Steps
Test both without selecting a version.
Expected
The first request fails and the second returns draft problems instead of evaluation.
Data
No fixtures beyond the described setup.
Bound to
Source
react-console:acceptance/eligibility/playwright/journeys/evaluation/ELIG-ACC-0294.spec.ts#ELIG-ACC-0294
04 Require supported existing subjectsboundaryapinegativetest
Proves
BR-CAP-PFM-ELG-003-04
Preconditions
A contact rule is present.
Steps
Test an absent contact and an unsupported subject kind.
Expected
The absent record returns not found and the unsupported kind is rejected.
Data
No fixtures beyond the described setup.
Bound to
Source
services-platform:modules/eligibility/tests/integration/services/evaluate/hosted-evaluate.integration.spec.js#refuses a contact the tenant does not have, RecordNotFound
05 Inspect condition results in the consolerulebrowsertest
Proves
BR-CAP-PFM-ELG-003-06
Preconditions
Three contacts include a subject without a birth date.
Steps
Run their draft evaluations from the tester.
Expected
Condition rows show the observed values and Met, Not met or Unknown; the missing birth date fails the age condition.
Data
No fixtures beyond the described setup.
Bound to
Source
react-console:acceptance/eligibility/playwright/journeys/definitions/ELIG-ACC-0080.spec.ts#ELIG-ACC-0080
06 Repair work before trying itinteractionapiproposed
Proves
BR-CAP-PFM-ELG-001-04 BR-CAP-PFM-ELG-003-03
Preconditions
A draft has one invalid reference and a readable subject exists.
Steps
Save the invalid draft, attempt a trial, repair the reference and run the trial again.
Expected
The first trial exposes draft problems; the repaired trial supplies a condition explanation without decision history.
Data
Run-owned records and a controlled clock where timing changes the result.
Source
services-platform:modules/eligibility/tests/e2e/eligibility-definitions.e2e.spec.js#answers the draft’s problem, saved rather than refused; react-console:acceptance/eligibility/playwright/journeys/evaluation/ELIG-ACC-0294.spec.ts#ELIG-ACC-0294
07 Compare trial and consumer answersinteractionapiproposed
Proves
BR-CAP-PFM-ELG-003-01 BR-CAP-PFM-ELG-008-01
Preconditions
One valid expression and subject are available to a reader and a consumer.
Steps
Try the expression and evaluate a binding to that expression with the same subject and day.
Expected
The condition states agree; only the bound request is eligible for recording and uncertainty policy.
Data
Run-owned records and a controlled clock where timing changes the result.
Source
services-platform:modules/eligibility/tests/e2e/eligibility-evaluate.e2e.spec.js#answers the version’s decision with the trace, never recorded; services-platform:modules/eligibility/tests/unit/compile-and-evaluate.spec.js#makes an indeterminate state ineligible under closed

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.