From b63685a761e82918a2bbd226df194ac84a53b3b1 Mon Sep 17 00:00:00 2001 From: Maxime GRANDCOLAS Date: Mon, 18 Nov 2024 13:20:18 +0100 Subject: [PATCH] [MS] Fixed e2e test for document viewer --- client/tests/e2e/specs/documents_list.spec.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/tests/e2e/specs/documents_list.spec.ts b/client/tests/e2e/specs/documents_list.spec.ts index 5875aae4b6e..8ef5f176d4c 100644 --- a/client/tests/e2e/specs/documents_list.spec.ts +++ b/client/tests/e2e/specs/documents_list.spec.ts @@ -170,11 +170,8 @@ for (const gridMode of [false, true]) { } else { await documents.locator('.folder-container').getByRole('listitem').nth(2).dblclick(); } - const modal = documents.locator('.information-modal'); - await expect(modal).toBeVisible(); - await expect(modal.locator('.container-textinfo')).toHaveText('This feature is not yet available in web mode.'); - await modal.locator('#next-button').click(); - await expect(modal).toBeHidden(); + + await expect(documents).toHavePageTitle('File viewer'); }); msTest(`Navigation back and forth in ${gridMode ? 'grid' : 'list'} mode`, async ({ documents }) => {