Skip to content

ATS-PFM-ELG-014Arrange temporary responsibility cover: Capability Test Specification

Markdown

ATS-PFM-ELG-014

Arrange temporary responsibility cover: 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-066
  • Validation covered
  • Permission gap: FND-PFM-ELG-066
  • Edge covered
  • Failure gap: FND-PFM-ELG-066
  • Boundary covered
  • Concurrency gap: FND-PFM-ELG-066
  • Invariant gap: FND-PFM-ELG-066
  • Interaction covered

Test Scenarios

12 scenarios proving CAP-PFM-ELG-014; 10 bound to an existing test.

01 Apply delegation authoritypermissionapinegativetest
Proves
BR-CAP-PFM-ELG-014-01
Preconditions
Owners, other holders, managers and readers exist.
Steps
Attempt own and foreign assignment cover.
Expected
Delegate-own covers self, management covers others and reader-only requests fail.
Data
No fixtures beyond the described setup.
Bound to
services-platform:modules/responsibilities/tests/e2e/responsibilities.e2e.spec.js#lets a holder with delegate-own delegate their own assignment
services-platform:modules/responsibilities/tests/e2e/responsibilities.e2e.spec.js#refuses delegate-own on somebody else’s assignment, 403
Source
services-platform:modules/responsibilities/tests/e2e/responsibilities.e2e.spec.js#lets a holder with delegate-own delegate their own assignment
02 Validate cover durationboundaryunitnegativetest
Proves
BR-CAP-PFM-ELG-014-02
Preconditions
One assignment lasts at least 90 days and another ends within a month.
Steps
Try 59 minutes, one hour, 90 and 91 days, an overlong assignment-relative period and a past end.
Expected
One hour and 90 days satisfy duration bounds when the assignment permits; other cases name the failed bound.
Data
No fixtures beyond the described setup.
Bound to
services-platform:modules/responsibilities/tests/unit/rules.spec.js#refuses a window that outlives its assignment
Source
services-platform:modules/responsibilities/tests/unit/rules.spec.js#refuses a window shorter than one hour
03 Require a valid colleague and holdingvalidationapinegativetest
Proves
BR-CAP-PFM-ELG-014-03
Preconditions
Default and ended assignments and an outside-customer user exist.
Steps
Attempt cover for each and self-cover.
Expected
All fail, with default cover directing the caller to a direct holding.
Data
No fixtures beyond the described setup.
Bound to
Source
services-platform:modules/responsibilities/tests/integration/services/persistence/delegations.integration.spec.js#refuses a role default, pointing to a direct assignment of the same scope
04 Cover all eligible direct holdingstransitionapitest
Proves
BR-CAP-PFM-ELG-014-04
Preconditions
A person has three direct assignments.
Steps
Delegate them together to one colleague.
Expected
Three cover rows and one notice counting them result.
Data
No fixtures beyond the described setup.
Bound to
services-platform:modules/responsibilities/tests/integration/services/notices/responsibility-notices.integration.spec.js#tells the delegate once for “delegate all mine”, counting every assignment, and confirms once
Source
services-platform:modules/responsibilities/tests/e2e/responsibilities.e2e.spec.js#delegates every assignment of the caller in one call
05 Limit early-ending actorspermissionapinegativetest
Proves
BR-CAP-PFM-ELG-014-05
Preconditions
A cover arrangement is active.
Steps
Try ending as a third person, delegate and manager.
Expected
The unrelated person cannot change it; authorized participants can end it.
Data
No fixtures beyond the described setup.
Bound to
Source
services-platform:modules/responsibilities/tests/e2e/responsibilities.e2e.spec.js#lets the delegate end a delegation
06 Show and remove the cover bannerinteractionbrowsertest
Proves
BR-CAP-PFM-ELG-014-06 AS-JNY-PFM-ELG-005-01
Preconditions
Pat has a holding that receives attention.
Steps
Delegate to Sam, inspect Sam’s Home and end the arrangement.
Expected
Home shows Pat’s named cover and items only while the arrangement applies.
Data
No fixtures beyond the described setup.
Bound to
Source
react-console:acceptance/platform-attention/playwright/journeys/responsibilities/RA-ACC-0002.spec.ts#RA-ACC-0002
07 Confirm handover to the holderruleapitest
Proves
BR-CAP-PFM-ELG-014-07
Preconditions
A manager arranges someone else’s cover.
Steps
Submit the handover.
Expected
The delegate receives the holder, count and end, and the original holder receives confirmation rather than the acting manager.
Data
No fixtures beyond the described setup.
Bound to
services-platform:modules/responsibilities/tests/integration/services/notices/responsibility-notices.integration.spec.js#tells the delegate once and confirms to the person who delegated, even though they are the one acting
services-platform:modules/responsibilities/tests/integration/services/notices/responsibility-notices.integration.spec.js#confirms to the holder, not the manager, when a manager delegates someone else’s assignment
services-platform:modules/responsibilities/tests/e2e/responsibilities-notifications.e2e.spec.js#tells the delegate who handed them how many responsibilities, and confirms to the delegator who acted
Source
services-platform:modules/responsibilities/tests/integration/services/notices/responsibility-notices.integration.spec.js#tells the delegate once and confirms to the person who delegated, even though they are the one acting
08 Report cover whose delegate became inactiveedgeapitest
Proves
BR-CAP-PFM-ELG-014-08
Preconditions
An active delegation exists before its recipient becomes inactive.
Steps
Run responsibility reconciliation.
Expected
The report identifies the inactive delegate while the delegation remains active.
Data
Existing evidence fixtures provide the described setup.
Bound to
services-platform:modules/responsibilities/tests/integration/services/reconcile/reconcile-tenant.integration.spec.js#(d) reports a delegation to a user who is no longer active, and leaves it active
Source
services-platform:modules/responsibilities/tests/integration/services/reconcile/reconcile-tenant.integration.spec.js#(d) reports a delegation to a user who is no longer active, and leaves it active
09 End a holding with its coverinteractionapiproposed
Proves
BR-CAP-PFM-ELG-013-08 BR-CAP-PFM-ELG-014-06
Preconditions
A direct holding has active cover and an authorized manager has its current version.
Steps
End the holding and read both the cover arrangement and effective holdings.
Expected
Both ending changes commit together and neither person remains effective through the ended holding.
Data
Run-owned records and a controlled clock where timing changes the result.
Source
services-platform:modules/responsibilities/tests/integration/services/persistence/assignments.integration.spec.js#ends the assignment’s open delegations in the same transaction; react-console:acceptance/platform-attention/playwright/journeys/responsibilities/RA-ACC-0002.spec.ts#RA-ACC-0002
10 Report inactive cover without silently ending itinteractionapiproposed
Proves
BR-CAP-PFM-ELG-014-08 BR-CAP-PFM-ELG-015-04
Preconditions
A cover arrangement exists before the delegate becomes inactive.
Steps
Run nightly reconciliation, inspect its report and the cover row, then read effective attention.
Expected
The report names the inactive colleague while the arrangement is retained; ineffective coverage supplies no attention match.
Data
Run-owned records and a controlled clock where timing changes the result.
Source
services-platform:modules/responsibilities/tests/integration/services/reconcile/reconcile-tenant.integration.spec.js#(d) reports a delegation to a user who is no longer active, and leaves it active; services-platform:modules/responsibilities/tests/integration/services/reconcile/reconcile-tenant.integration.spec.js#(a) writes one active role-default assignment of the declared role at the tenant
11 Transfer attention through temporary coverinteractionbrowsertest
Proves
BR-CAP-PFM-ELG-014-06 BR-CAP-PFM-ELG-017-02
Preconditions
One person holds an area and a colleague holds nothing.
Steps
Arrange cover, read the colleague’s attention and Home banner, end cover and repeat the reads.
Expected
The colleague receives the item with the covering reason and named end while cover applies, then loses both.
Data
Run-owned records and a controlled clock where timing changes the result.
Bound to
Source
react-console:acceptance/platform-attention/playwright/journeys/responsibilities/RA-ACC-0002.spec.ts#RA-ACC-0002; services-platform:modules/attention/tests/integration/services/persistence/items.queries.integration.spec.js#reaches a role audience’s holders, and not a user without the role
12 Audit accepted handover with its arrangementinvariantapitest
Proves
BR-CAP-PFM-ELG-013-14
Preconditions
A person has an eligible holding and a different active colleague.
Steps
Create one cover arrangement and inspect its audit entry.
Expected
The audit identifies the created arrangement and supplied handover fields.
Data
Run-owned fixtures, separate caller contexts and a controlled clock where required.
Bound to
Source
services-platform:modules/responsibilities/tests/integration/services/persistence/delegations.integration.spec.js#audits the delegation as a responsibility_delegation

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.