From 227017625da136f06e25204d7073bce2638db8ed Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Fri, 13 Oct 2023 13:46:32 -0500 Subject: [PATCH] test(core): fix flaky (#4597) --- tests/affine-local/e2e/router.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/affine-local/e2e/router.spec.ts b/tests/affine-local/e2e/router.spec.ts index 70a451c145..2605234b79 100644 --- a/tests/affine-local/e2e/router.spec.ts +++ b/tests/affine-local/e2e/router.spec.ts @@ -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 }) => {