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.

fix(core): fix flaky e2e test (#11308)

EYHNbaf1aad41285
diff --git a/tests/kit/src/utils/page-logic.ts b/tests/kit/src/utils/page-logic.ts
index df9ed578c0..bc5c88c349 100644
--- a/tests/kit/src/utils/page-logic.ts
+++ b/tests/kit/src/utils/page-logic.ts
@@ -10,7 +10,9 @@ export function getAllPage(page: Page) {
async function clickNewPageButton() {
const newPageButton = page.getByTestId('new-page-button-trigger');
- return await newPageButton.click();
+ return await newPageButton.click({
+ timeout: 20000,
+ });
}
async function clickNewEdgelessDropdown() {