mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
refactor(editor): rename presets to integration test (#10340)
This commit is contained in:
@@ -7,7 +7,7 @@ import type {
|
||||
} from '@blocksuite/blocks';
|
||||
import { assertExists } from '@blocksuite/global/utils';
|
||||
import type { InlineRange, InlineRootElement } from '@blocksuite/inline';
|
||||
import type { AffineEditorContainer } from '@blocksuite/presets';
|
||||
import type { TestAffineEditorContainer } from '@blocksuite/integration-test';
|
||||
import type { BlockModel } from '@blocksuite/store';
|
||||
import { uuidv4 } from '@blocksuite/store';
|
||||
import type { ConsoleMessage, Locator, Page } from '@playwright/test';
|
||||
@@ -169,7 +169,7 @@ export async function enterPlaygroundRoom(
|
||||
const locator = page.locator('affine-editor-container');
|
||||
await locator.isVisible();
|
||||
await page.evaluate(async () => {
|
||||
const dom = document.querySelector<AffineEditorContainer>(
|
||||
const dom = document.querySelector<TestAffineEditorContainer>(
|
||||
'affine-editor-container'
|
||||
);
|
||||
if (dom) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { EditorHost } from '@blocksuite/block-std';
|
||||
import type { AffineEditorContainer } from '@blocksuite/presets';
|
||||
import type { TestAffineEditorContainer } from '@blocksuite/integration-test';
|
||||
import type { Store, Transformer, Workspace } from '@blocksuite/store';
|
||||
|
||||
declare global {
|
||||
@@ -13,12 +13,12 @@ declare global {
|
||||
global: {
|
||||
utils: typeof import('@blocksuite/global/utils');
|
||||
};
|
||||
editor: typeof import('@blocksuite/presets');
|
||||
editor: typeof import('@blocksuite/integration-test');
|
||||
blockStd: typeof import('@blocksuite/block-std');
|
||||
};
|
||||
collection: Workspace;
|
||||
doc: Store;
|
||||
editor: AffineEditorContainer;
|
||||
editor: TestAffineEditorContainer;
|
||||
host: EditorHost;
|
||||
job: Transformer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user