diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-file-field-preview/dot-file-field-preview.component.html b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-file-field-preview/dot-file-field-preview.component.html index dc95c00a2e24..999f460223cf 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-file-field-preview/dot-file-field-preview.component.html +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-file-field-preview/dot-file-field-preview.component.html @@ -39,7 +39,9 @@ @if (metadata.fileSize) {
} } diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-file-field-preview/dot-file-field-preview.component.spec.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-file-field-preview/dot-file-field-preview.component.spec.ts index e347fafd3b2b..37cd017d3e2d 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-file-field-preview/dot-file-field-preview.component.spec.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-file-field-preview/dot-file-field-preview.component.spec.ts @@ -101,19 +101,18 @@ describe('DotFileFieldPreviewComponent', () => { spectator.detectChanges(); const infoBtnElement = spectator.query(byTestId('info-btn')); - + const dialogComponent = spectator.query(Dialog); spectator.click(infoBtnElement); expect(dialogComponent.visible).toBeTruthy(); }); - it('should show a dialog when click on the proper responsive btn', async () => { spectator.detectChanges(); const infoBtnElement = spectator.query(byTestId('info-btn-responsive')); - + const dialogComponent = spectator.query(Dialog); spectator.click(infoBtnElement); @@ -150,7 +149,7 @@ describe('DotFileFieldPreviewComponent', () => { const links = spectator.queryAll('.file-info__item'); const copyBtns = spectator.queryAll(DotCopyButtonComponent); - + expect(links.length).toBe(4); expect(copyBtns.length).toBe(3); });