AAE-30058 Integer form field should not allow more than 10 digits (#11146)

* AAE-30058 Integer form field should not allow more than 10 digits

* Update maxLength validator to get custom values

* fix units
This commit is contained in:
Bartosz Sekula
2025-09-02 11:51:13 +02:00
committed by GitHub
parent a4e62974ea
commit aae4efdd92
3 changed files with 54 additions and 5 deletions
@@ -1210,7 +1210,7 @@ describe('FormCloudComponent', () => {
formComponent.formCloudRepresentationJSON = new FormCloudRepresentation(JSON.parse(JSON.stringify(cloudFormMock)));
const form = formComponent.parseForm(formComponent.formCloudRepresentationJSON);
expect(formComponent.fieldValidators.length).toBe(1);
expect(form.fieldValidators.length).toBe(10);
expect(form.fieldValidators.length).toBe(11);
});
describe('form validations', () => {