From 9e8158f4dc8c77cd81973c63fdd2c74a4c2924d6 Mon Sep 17 00:00:00 2001 From: Amedeo Lepore Date: Fri, 16 Dec 2022 10:25:24 +0100 Subject: [PATCH] [AAE-10778] Replace adf-viewer with adf-alfresco-viewer, update escape command to close the viewer --- .../components/alfresco-viewer.component.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/content-services/src/lib/viewer/components/alfresco-viewer.component.spec.ts b/lib/content-services/src/lib/viewer/components/alfresco-viewer.component.spec.ts index 2e11d375be..b20eac596e 100644 --- a/lib/content-services/src/lib/viewer/components/alfresco-viewer.component.spec.ts +++ b/lib/content-services/src/lib/viewer/components/alfresco-viewer.component.spec.ts @@ -88,7 +88,7 @@ class DummyDialogComponent { @Component({ selector: 'adf-viewer-container-open-with', template: ` - + - + ` }) class ViewerWithCustomOpenWithComponent { @@ -112,7 +112,7 @@ class ViewerWithCustomOpenWithComponent { @Component({ selector: 'adf-viewer-container-more-actions', template: ` - + - + ` }) class ViewerWithCustomMoreActionsComponent { @@ -783,7 +783,7 @@ describe('AlfrescoViewerComponent', () => { const dialogRef = dialog.open(DummyDialogComponent); dialogRef.afterClosed().subscribe(() => { - document.body.dispatchEvent(event); + EventMock.keyDown(27); fixture.detectChanges(); expect(element.querySelector('.adf-alfresco-viewer-content')).toBeNull(); done();