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(); }); });