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(core): replace zero-width non-ioiner for editor content (#11591)
yoyoyohamapi25418b402ae3
diff --git a/tests/affine-cloud-copilot/e2e/utils/editor-utils.ts b/tests/affine-cloud-copilot/e2e/utils/editor-utils.tsindex 7ace8b9c26..9bf1ac76cd 100644--- a/tests/affine-cloud-copilot/e2e/utils/editor-utils.ts+++ b/tests/affine-cloud-copilot/e2e/utils/editor-utils.ts@@ -28,7 +28,7 @@ export class EditorUtils {const lines = await page.$$('page-editor .inline-editor');const contents = await Promise.all(lines.map(el => el.innerText()));content = contents- .map(c => c.replace(/\u200B/g, '').trim())+ .map(c => c.replace(/[\u200B-\u200D\uFEFF]/g, '').trim()).filter(c => !!c).join('\n');if (!content) {@@ -43,7 +43,9 @@ export class EditorUtils {const edgelessNode = await page.waitForSelector('affine-edgeless-note .edgeless-note-page-content');- return (await edgelessNode.innerText()).replace(/\u200B/g, '').trim();+ return (await edgelessNode.innerText())+ .replace(/[\u200B-\u200D\uFEFF]/g, '')+ .trim();}public static async switchToEdgelessMode(page: Page) {