mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4270] Fix empty name cell in process header cloud (#4557)
This commit is contained in:
committed by
Eugenio Romano
parent
58e0e44693
commit
7bb3c00a75
@@ -209,6 +209,7 @@
|
||||
"PROPERTIES": {
|
||||
"ID": "ID",
|
||||
"NAME": "Name",
|
||||
"NAME_DEFAULT": "No name",
|
||||
"DESCRIPTION": "Description",
|
||||
"DESCRIPTION_DEFAULT": "No description",
|
||||
"STATUS": "Status",
|
||||
|
@@ -101,7 +101,19 @@ describe('ProcessHeaderCloudComponent', () => {
|
||||
});
|
||||
}));
|
||||
|
||||
it('should display placeholder if no description is avilable', async(() => {
|
||||
it('should display placeholder if no name is available', async(() => {
|
||||
processInstanceDetailsCloudMock.name = null;
|
||||
component.ngOnChanges();
|
||||
fixture.detectChanges();
|
||||
|
||||
fixture.whenStable().then(() => {
|
||||
const valueEl = fixture.debugElement.query(By.css('[data-automation-id="card-textitem-value-name"] span'));
|
||||
expect(valueEl.nativeElement.innerText).toBe('ADF_CLOUD_PROCESS_HEADER.PROPERTIES.NAME_DEFAULT');
|
||||
});
|
||||
|
||||
}));
|
||||
|
||||
it('should display placeholder if no description is available', async(() => {
|
||||
processInstanceDetailsCloudMock.description = null;
|
||||
component.ngOnChanges();
|
||||
fixture.detectChanges();
|
||||
|
@@ -83,7 +83,8 @@ export class ProcessHeaderCloudComponent implements OnChanges {
|
||||
{
|
||||
label: 'ADF_CLOUD_PROCESS_HEADER.PROPERTIES.NAME',
|
||||
value: this.processInstanceDetails.name,
|
||||
key: 'name'
|
||||
key: 'name',
|
||||
default: this.translationService.instant('ADF_CLOUD_PROCESS_HEADER.PROPERTIES.NAME_DEFAULT')
|
||||
}),
|
||||
new CardViewTextItemModel(
|
||||
{
|
||||
|
Reference in New Issue
Block a user