mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
AAE-23115 Display key of the user attribute in external property preview (#9835)
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<span class="adf-display-external-property-widget-preview"
|
||||
data-automation-id="adf-display-external-property-widget-preview"
|
||||
>
|
||||
{{ field.externalProperty }}
|
||||
{{ field.params.externalPropertyLabel }}
|
||||
</span>
|
||||
</ng-container>
|
||||
</mat-form-field>
|
||||
|
@@ -97,6 +97,7 @@ describe('DisplayExternalPropertyWidgetComponent', () => {
|
||||
widget.field = new FormFieldModel(new FormModel({ taskId: '<id>' }), {
|
||||
type: FormFieldTypes.DISPLAY_EXTERNAL_PROPERTY,
|
||||
externalProperty: 'fruitName',
|
||||
params: { externalPropertyLabel: 'Fruit Name' },
|
||||
value: null
|
||||
});
|
||||
|
||||
@@ -111,7 +112,7 @@ describe('DisplayExternalPropertyWidgetComponent', () => {
|
||||
|
||||
it('should display external property name', () => {
|
||||
const externalPropertyPreview = fixture.debugElement.query(By.css('[data-automation-id="adf-display-external-property-widget-preview"]'));
|
||||
expect(externalPropertyPreview.nativeElement.textContent.trim()).toBe('fruitName');
|
||||
expect(externalPropertyPreview.nativeElement.textContent.trim()).toBe('Fruit Name');
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user