From 312031e6f1846cf671ec51a175fe8288e9b7d0c8 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 25 Nov 2023 01:28:23 -0800 Subject: [PATCH] Update tests for new viewer --- .../document-detail/document-detail.spec.ts | 2 +- .../loading-dialog.component.html | 2 +- .../loading-dialog.component.spec.ts | 12 ++- .../document-detail.component.spec.ts | 97 ++++++++++++++++--- .../document-detail.component.ts | 2 +- 5 files changed, 98 insertions(+), 17 deletions(-) diff --git a/src-ui/e2e/document-detail/document-detail.spec.ts b/src-ui/e2e/document-detail/document-detail.spec.ts index 1bc2b6aa9..d5f29b847 100644 --- a/src-ui/e2e/document-detail/document-detail.spec.ts +++ b/src-ui/e2e/document-detail/document-detail.spec.ts @@ -79,7 +79,7 @@ test('should show a mobile preview', async ({ page }) => { await page.setViewportSize({ width: 400, height: 1000 }) await expect(page.getByRole('tab', { name: 'Preview' })).toBeVisible() await page.getByRole('tab', { name: 'Preview' }).click() - await page.waitForSelector('pdf-viewer') + await page.waitForSelector('ngx-extended-pdf-viewer') }) test('should show a list of notes', async ({ page }) => { diff --git a/src-ui/src/app/components/common/loading-dialog/loading-dialog.component.html b/src-ui/src/app/components/common/loading-dialog/loading-dialog.component.html index 1247452e4..d086f7edf 100644 --- a/src-ui/src/app/components/common/loading-dialog/loading-dialog.component.html +++ b/src-ui/src/app/components/common/loading-dialog/loading-dialog.component.html @@ -1,5 +1,5 @@