mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 00:11:33 +03:00
ab11f09b83
## Features - https://github.com/toeverything/BlockSuite/pull/7704 @L-Sun - https://github.com/toeverything/BlockSuite/pull/7733 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/7585 @fundon ## Bugfix - https://github.com/toeverything/BlockSuite/pull/7749 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/7745 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/7737 @fundon - https://github.com/toeverything/BlockSuite/pull/7734 @fundon - https://github.com/toeverything/BlockSuite/pull/7735 @L-Sun - https://github.com/toeverything/BlockSuite/pull/7730 @fourdim - https://github.com/toeverything/BlockSuite/pull/7718 @fourdim - https://github.com/toeverything/BlockSuite/pull/7723 @Flrande ## Refactor - https://github.com/toeverything/BlockSuite/pull/7738 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/7731 @fourdim - https://github.com/toeverything/BlockSuite/pull/7732 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/7724 @doouding - https://github.com/toeverything/BlockSuite/pull/7725 @doodlewind ## Misc - https://github.com/toeverything/BlockSuite/pull/7748 @doodlewind - https://github.com/toeverything/BlockSuite/pull/7721 @fundon - https://github.com/toeverything/BlockSuite/pull/7729 @fundon - https://github.com/toeverything/BlockSuite/pull/7728 @L-Sun - https://github.com/toeverything/BlockSuite/pull/7595 @fundon
29 lines
1.0 KiB
TypeScript
29 lines
1.0 KiB
TypeScript
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'
|
|
);
|
|
});
|