fix: create a new page when refresh (#1440)

This commit is contained in:
Himself65 authored and GitHub committed 2023-03-09 08:10:02 +00:00
1 parent 6594d2d47b
commit 373953b8ae
2 files changed
+19 -12

No files matched your search

+2 -1
View File
@@ -10,10 +10,11 @@ test.describe('Shortcuts Modal', () => {
await page.locator('[data-testid=help-island]').click();
const shortcutsIcon = page.locator('[data-testid=shortcuts-icon]');
await page.waitForTimeout(1000);
expect(await shortcutsIcon.isVisible()).toEqual(true);
await shortcutsIcon.click();
await page.waitForTimeout(800);
await page.waitForTimeout(1000);
const shortcutsModal = page.locator('[data-testid=shortcuts-modal]');
await expect(shortcutsModal).toContainText('Keyboard Shortcuts');
});