chore(editor): fix imports in legacy tests (#10300)

This commit is contained in:
Saul-Mirone
2025-02-20 03:30:05 +00:00
parent e0b2b2b33c
commit c3fc0a0d88
119 changed files with 96 additions and 90 deletions
@@ -0,0 +1,22 @@
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.updateBlockType, {
flavour,
props: {
type,
},
});
},
[flavour, type] as [string, string?]
);
await waitNextFrame(page, 400);
}