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): adjust creation position to avoid being blocked by banner (#10992)
fundona8ac3bdb3e1b
diff --git a/tests/affine-local/e2e/blocksuite/edgeless/frame.spec.ts b/tests/affine-local/e2e/blocksuite/edgeless/frame.spec.tsindex 93189c53f4..52483b869c 100644--- a/tests/affine-local/e2e/blocksuite/edgeless/frame.spec.ts+++ b/tests/affine-local/e2e/blocksuite/edgeless/frame.spec.ts@@ -38,22 +38,22 @@ test('should update zindex of element when moving it into frame', async ({// create a top frameawait page.keyboard.press('f');- await dragView(page, [0, 0], [300, 300]);+ await dragView(page, [0, 100], [300, 400]);await toolbar.getByLabel('Background').click();await toolbar.getByLabel('LightRed').click();await pressEscape(page);// create a note- await createEdgelessNoteBlock(page, [400, 400]);- await clickView(page, [0, 0]);- await clickView(page, [400, 400]);+ await createEdgelessNoteBlock(page, [500, 500]);+ await clickView(page, [0, 100]);+ await clickView(page, [500, 500]);await toolbar.getByLabel('More').click();await toolbar.getByLabel('Send to Back').click();await pressEscape(page);- await dragView(page, [400, 400], [100, 100]);+ await dragView(page, [500, 500], [100, 200]);- const point = await toViewCoord(page, [100, 100]);+ const point = await toViewCoord(page, [100, 200]);const isNoteAboveFrame = await page.evaluate(point => {return !!document