diff --git a/api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts b/api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts index 0a0778e..42f2f9f 100644 --- a/api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts +++ b/api-v3/test/unit/f6-1-operator-cancellation-ux.test.ts @@ -39,6 +39,6 @@ test('F6.1 WEB cancellation requires an explicit audited reason and is available assert.match(controller, /@Post\(':id\/cancel'\)/); assert.match(dto, /@MinLength\(10\)/); assert.match(dto, /@MaxLength\(4000\)/); - assert.match(lifecycle, /\['DRAFT','PLANNED','IN_PROGRESS'\]/); - assert.match(lifecycle, /INSPECTION_HAS_SEALED_ACT/); + assert.match(lifecycle, /\[InspectionVisitStatus\.DRAFT, InspectionVisitStatus\.PLANNED, InspectionVisitStatus\.IN_PROGRESS\]\.includes\(visit\.status\)/); + assert.match(lifecycle, /INSPECTION_WITH_SEALED_ACT_CANNOT_CANCEL/); });