refactor(editor): rename presets to integration test (#10340)

This commit is contained in:
Saul-Mirone
2025-02-21 06:26:03 +00:00
parent f79324b6a1
commit f3218ab3bc
116 changed files with 156 additions and 210 deletions
@@ -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;
}