Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

test(core): fix flaky (#4597)

Alex Yang227017625da1
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 }) => {