[ADF-494] fixed readonly rendering for forms (#1972)

* [ADF-494] improved disabling for form

* [ADF-494] fixed readonly rendering for forms
This commit is contained in:
Vito
2017-06-15 05:04:36 -07:00
committed by Eugenio Romano
parent 5b21af7813
commit 7926023852

View File

@@ -101,6 +101,17 @@ describe('TextWidget', () => {
expect(inputElement.disabled).toBeTruthy();
});
}));
it('should be disabled on readonly forms', async(() => {
textWidget.field.form.readOnly = true;
fixture.whenStable().then(() => {
fixture.detectChanges();
expect(inputElement).toBeDefined();
expect(inputElement).not.toBeNull();
expect(inputElement.disabled).toBeTruthy();
});
}));
});
describe('and mask is configured on text element', () => {