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
fix(editor): fix callout tests (#11301)
Fangdun Tsai6850871bfba6
diff --git a/tests/affine-local/e2e/blocksuite/callout/callout.spec.ts b/tests/affine-local/e2e/blocksuite/callout/callout.spec.tsindex 82c88169ff..87400b8629 100644--- a/tests/affine-local/e2e/blocksuite/callout/callout.spec.ts+++ b/tests/affine-local/e2e/blocksuite/callout/callout.spec.ts@@ -6,12 +6,17 @@ import {undoByKeyboard,} from '@affine-test/kit/utils/keyboard';import { openHomePage } from '@affine-test/kit/utils/load-page';-import { type } from '@affine-test/kit/utils/page-logic';+import {+ clickNewPageButton,+ type,+ waitForEmptyEditor,+} from '@affine-test/kit/utils/page-logic';import { expect, test } from '@playwright/test';test.beforeEach(async ({ page }) => {await openHomePage(page);- await page.getByTestId('sidebar-new-page-button').click();+ await clickNewPageButton(page);+ await waitForEmptyEditor(page);await page.locator('affine-paragraph v-line div').click();});