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
import { clickEdgelessModeButton } from '@affine-test/kit/utils/editor';
import { openHomePage } from '@affine-test/kit/utils/load-page';
import {
clickNewPageButton,
getBlockSuiteEditorTitle,
waitForEmptyEditor,
} from '@affine-test/kit/utils/page-logic';
import test, { expect } from '@playwright/test';
test('should be able to undo on empty page', async ({ page }) => {
await openHomePage(page);
await clickNewPageButton(page);
await getBlockSuiteEditorTitle(page).isVisible();
await waitForEmptyEditor(page);
await clickEdgelessModeButton(page);
await page.keyboard.press('ControlOrMeta+Z');
// test editor still work
await page.locator('.edgeless-note-page-content').click({ force: true });
await page.locator('.edgeless-note-page-content').click({ force: true });
await page.waitForTimeout(100);
await page
.locator('.edgeless-note-page-content')
.pressSequentially('test text');
await expect(page.locator('.edgeless-note-page-content')).toContainText(
'test text'
);
});