From 2121df0b552f2708d1e5cddd5536a5069b73f3a1 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Tue, 8 Sep 2026 15:10:01 -0300 Subject: [PATCH] test: align F4 sealing contract with documented absence --- api-v3/test/unit/f4-multi-act-lifecycle.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api-v3/test/unit/f4-multi-act-lifecycle.test.ts b/api-v3/test/unit/f4-multi-act-lifecycle.test.ts index 93c6a4c..60ae06e 100644 --- a/api-v3/test/unit/f4-multi-act-lifecycle.test.ts +++ b/api-v3/test/unit/f4-multi-act-lifecycle.test.ts @@ -80,13 +80,13 @@ test('F4 field finding flow only targets a draft act of the same in-progress ins assert.match(draftGuard, /WHERE visit_id = \$1::uuid[\s\S]*AND status = 'DRAFT'/); }); -test('F4 sealing requires inspector signature and exactly one resolved company manifestation', () => { +test('F4 sealing requires inspector signature and exactly one terminal company outcome', () => { const closeBody = closing.slice(closing.indexOf(' async close('), closing.indexOf(' async signatureContent(')); assert.match(closeBody, /INSPECTION_ACT_INSPECTOR_SIGNATURE_REQUIRED/); assert.match(closeBody, /companyOutcomes\.length !== 1/); assert.match(closeBody, /INSPECTION_ACT_COMPANY_OUTCOME_REQUIRED/); - assert.match(closeBody, /InspectionActSignatureStatus\.ABSENT/); - assert.match(closeBody, /INSPECTION_ACT_COMPANY_MANIFESTATION_PENDING/); + assert.match(closeBody, /ausencia documentada/); + assert.doesNotMatch(closeBody, /INSPECTION_ACT_COMPANY_MANIFESTATION_PENDING/); assert.match(closeBody, /status='SEALED'/); });