test(core): fix flaky (#4597)

This commit is contained in:
Alex Yang
2023-10-13 13:46:32 -05:00
committed by GitHub
parent 6ea10860b4
commit 227017625d
+3 -1
View File
@@ -9,7 +9,9 @@ test('goto not found page', async ({ page }) => {
const currentUrl = page.url();
const invalidUrl = currentUrl.replace('hello-world', 'invalid');
await page.goto(invalidUrl);
await expect(page.getByTestId('not-found')).toBeVisible();
await expect(page.getByTestId('not-found')).toBeVisible({
timeout: 10000,
});
});
test('goto not found workspace', async ({ page }) => {