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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
test: fix flaky title insert (#3884)
Alex Yangb5afbe385f49
diff --git a/tests/affine-local/e2e/quick-search.spec.ts b/tests/affine-local/e2e/quick-search.spec.tsindex 0548bef0bb..6aa8eba55e 100644--- a/tests/affine-local/e2e/quick-search.spec.ts+++ b/tests/affine-local/e2e/quick-search.spec.ts@@ -179,7 +179,7 @@ test('Not show navigation path if page is not a subpage or current page is not iexpect(await page.getByTestId('navigation-path').count()).toBe(0);});-test('Assert the recent browse pages are on the recent list', async ({+test('assert the recent browse pages are on the recent list', async ({page,}) => {await openHomePage(page);@@ -187,20 +187,35 @@ test('Assert the recent browse pages are on the recent list', async ({// create first pageawait newPage(page);- await page.keyboard.insertText('sgtokidoki');+ {+ const title = getBlockSuiteEditorTitle(page);+ await title.type('sgtokidoki', {+ delay: 50,+ });+ }await page.waitForTimeout(200);// create second pageawait openQuickSearchByShortcut(page);const addNewPage = page.getByTestId('quick-search-add-new-page');await addNewPage.click();- await page.keyboard.insertText('theliquidhorse');+ {+ const title = getBlockSuiteEditorTitle(page);+ await title.type('theliquidhorse', {+ delay: 50,+ });+ }await page.waitForTimeout(200);// create thrid pageawait openQuickSearchByShortcut(page);await addNewPage.click();- await page.keyboard.insertText('battlekot');+ {+ const title = getBlockSuiteEditorTitle(page);+ await title.type('battlekot', {+ delay: 50,+ });+ }await page.waitForTimeout(200);await openQuickSearchByShortcut(page);