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

View File

@@ -0,0 +1,33 @@
import { expect } from '@playwright/test';
import {
enterPlaygroundRoom,
initEmptyParagraphState,
} from './utils/actions/index.js';
import { test } from './utils/playwright.js';
declare global {
interface Window {
testWorker: Worker;
}
}
test.skip('should the worker in the playground work fine.', async ({
page,
}) => {
await enterPlaygroundRoom(page);
await initEmptyParagraphState(page);
const ok = await page.evaluate(async () => {
return new Promise(resolve => {
window.testWorker.postMessage('ping');
window.testWorker.addEventListener('message', event => {
if (event.data === 'pong') {
resolve(true);
}
});
});
});
expect(ok).toBeTruthy();
});