test(F6.1): preserve backend cancellation reason contract
This commit is contained in:
@@ -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/);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user