test(F6.1): preserve backend cancellation reason contract

This commit is contained in:
2026-09-10 18:17:59 -03:00
parent 6d3f116ff3
commit 77ec954067
@@ -33,11 +33,12 @@ test('F6.1 WEB cancellation requires an explicit audited reason and is available
assert.match(editor, /cancelReason/); assert.match(editor, /cancelReason/);
assert.match(editor, /<textarea/); assert.match(editor, /<textarea/);
assert.match(editor, /cancelReason\.trim\(\)\.length < 10/); assert.match(editor, /cancelReason\.trim\(\)\.length < 10/);
assert.match(editor, /maxLength=\{500\}/);
assert.match(editor, /'DRAFT', 'PLANNED', 'IN_PROGRESS'/); assert.match(editor, /'DRAFT', 'PLANNED', 'IN_PROGRESS'/);
assert.match(editor, /Confirmar cancelación/); assert.match(editor, /Confirmar cancelación/);
assert.match(controller, /@Post\(':id\/cancel'\)/); assert.match(controller, /@Post\(':id\/cancel'\)/);
assert.match(dto, /@MinLength\(10\)/); assert.match(dto, /@MinLength\(10\)/);
assert.match(dto, /@MaxLength\(500\)/); assert.match(dto, /@MaxLength\(4000\)/);
assert.match(lifecycle, /\['DRAFT','PLANNED','IN_PROGRESS'\]/); assert.match(lifecycle, /\['DRAFT','PLANNED','IN_PROGRESS'\]/);
assert.match(lifecycle, /INSPECTION_HAS_SEALED_ACT/); assert.match(lifecycle, /INSPECTION_HAS_SEALED_ACT/);
}); });