From bb465c6d15b4e1adaadc3974c7280bec138be698 Mon Sep 17 00:00:00 2001
From: Katarzyna Kita <katarzyna.kita@hyland.com>
Date: Tue, 6 Feb 2024 14:41:43 +0100
Subject: [PATCH] Fixed general tests

---
 e2e/playwright/info-drawer/src/tests/general.spec.ts | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/e2e/playwright/info-drawer/src/tests/general.spec.ts b/e2e/playwright/info-drawer/src/tests/general.spec.ts
index 8f8d214221..7a9c1ef020 100644
--- a/e2e/playwright/info-drawer/src/tests/general.spec.ts
+++ b/e2e/playwright/info-drawer/src/tests/general.spec.ts
@@ -92,11 +92,9 @@ test.describe('Info Drawer - General', () => {
     expect(personalFiles.infoDrawer.infoDrawerPanel).not.toBeVisible();
     await personalFiles.dataTable.selectItem(file1);
     await personalFiles.clickInfoDrawerButton();
-    expect(await personalFiles.infoDrawer.infoDrawerPanel.isVisible()).toBe(true);
-
-    await personalFiles.reload();
-    await personalFiles.waitForPageLoad();
+    await expect(personalFiles.infoDrawer.infoDrawerPanel).toBeVisible();
 
-    expect(personalFiles.infoDrawer.infoDrawerPanel.isVisible()).toBe(false);
+    await personalFiles.reload({ waitUntil: 'load' });
+    expect(personalFiles.infoDrawer.infoDrawerPanel).not.toBeVisible();
   });
 });