test(editor): move blocksuite test to tests folder (#10917)

This commit is contained in:
Saul-Mirone
2025-03-17 06:40:25 +00:00
parent 0f83566504
commit d5a5df5e49
352 changed files with 47 additions and 44 deletions

View File

@@ -0,0 +1,25 @@
import type { Page } from '@playwright/test';
import { waitNextFrame } from './misc.js';
export async function updateBlockType(
page: Page,
flavour: string,
type?: string
) {
await page.evaluate(
([flavour, type]) => {
window.host.std.command.exec(
window.$blocksuite.blocks.note.updateBlockType,
{
flavour,
props: {
type,
},
}
);
},
[flavour, type] as [string, string?]
);
await waitNextFrame(page, 400);
}