diff --git a/packages/plugins/plugin-approvals/src/approval-revise.test.ts b/packages/plugins/plugin-approvals/src/approval-revise.test.ts index e0a7dc8da8..7f0cdf6518 100644 --- a/packages/plugins/plugin-approvals/src/approval-revise.test.ts +++ b/packages/plugins/plugin-approvals/src/approval-revise.test.ts @@ -482,8 +482,13 @@ describe('Send back for revision (ADR-0044)', () => { it('reverse check (tenant admin): admitted on `pending` too — the narrowing is about status, not posture', async () => { const { req, editAttempt } = await pendingRequest(); await expect(editAttempt()).rejects.toThrow(/RECORD_LOCKED/); // pending → locked + // The viewer flag the gate agrees with, read by the tenant admin itself. + const seen = await service.getRequest(req.id, TENANT_ADMIN); + expect(seen!.viewer!.can_override).toBe(true); + const out = await service.recall(req.id, { actorId: 'org_owner' }, TENANT_ADMIN); expect(out.request.status).toBe('recalled'); + expect(out.resumed).toBe(true); // resumed down the reject branch expect(await actionsOf(req.id)).toContain('recall'); await expect(editAttempt()).resolves.toBeUndefined(); // the #3424 release still happens });