Skip to content

Commit

Permalink
Fixed general tests
Browse files Browse the repository at this point in the history
  • Loading branch information
katarzynakita committed Feb 9, 2024
1 parent c813825 commit bb465c6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions e2e/playwright/info-drawer/src/tests/general.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});

0 comments on commit bb465c6

Please sign in to comment.