mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4572] Display value widget display issue when it has no value (#4943)
* [ADF-4572] Display value widget display issue when it has no value * Added readonly type to form-render * Added unit test case * * Fixed ee test * * Updating tests to return textWidget for display value * * Making changes to displayValueWidget css selector * * Updated case to check display value from api
This commit is contained in:
@@ -146,11 +146,12 @@ describe('Form widgets', () => {
|
||||
});
|
||||
|
||||
it('[C272783] Should display displayText and displayValue in form', () => {
|
||||
|
||||
expect(widget.displayTextWidget().getFieldLabel(appFields.displayText_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.displayText_id).value);
|
||||
expect(widget.displayValueWidget().getFieldLabel(appFields.displayValue_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.displayValue_id).value || 'Unknown type: readonly');
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.displayValue_id).value || 'Display value' || '');
|
||||
expect(widget.displayValueWidget().getFieldValue(appFields.displayValue_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.displayValue_id).value || '');
|
||||
});
|
||||
|
||||
it('[C272784] Should display typeahead and header in form', () => {
|
||||
|
Reference in New Issue
Block a user