[ADF-4797] - fix null value for display text when the field it's not visible (#4987)

* fix reset display text value when it's not visible

* change invalid unit test

* change unit test

* use alpha to test
This commit is contained in:
Silviu Popa
2019-08-09 16:45:26 +03:00
committed by Eugenio Romano
parent a8ef686cdd
commit f9a8d3a4bf
13 changed files with 28 additions and 31 deletions

View File

@@ -914,7 +914,7 @@ describe('WidgetVisibilityService', () => {
expect(contModel.isVisible).toBeFalsy();
});
it('should set null value when the field is not visibile', () => {
it('should not set null value when the field is not visibile', () => {
visibilityObjTest.leftFormFieldId = 'test_4';
visibilityObjTest.operator = '!=';
visibilityObjTest.rightFormFieldId = 'dropdown';
@@ -922,7 +922,7 @@ describe('WidgetVisibilityService', () => {
service.refreshEntityVisibility(fakeFormField);
expect(fakeFormField.isVisible).toBeFalsy();
expect(fakeFormField.value).toEqual(null);
expect(fakeFormField.value).toEqual('FAKE_FORM_FIELD_VALUE');
});
});