test(core): rewrite some flaky assertions (#5287)
This commit is contained in:
7 files changed
+19
-37
No files matched your search
@@ -10,7 +10,7 @@ test('Open shortcuts modal', async ({ page }) => {
|
||||
|
||||
const shortcutsIcon = page.locator('[data-testid=shortcuts-icon]');
|
||||
await page.waitForTimeout(1000);
|
||||
expect(await shortcutsIcon.isVisible()).toEqual(true);
|
||||
await expect(shortcutsIcon).toBeVisible();
|
||||
|
||||
await shortcutsIcon.click();
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
Reference in new issue
Block a user