test: add test case for blocksuite editor (#1528)
This commit is contained in:
1 parent
1c89841d6f
commit
a795000363
19 files changed
+495
-488
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { expect } from '@playwright/test';
|
||||
|
||||
import { test } from '../libs/playwright';
|
||||
|
||||
test.describe('Debug page broadcast', () => {
|
||||
test('should broadcast a message to all debug pages', async ({ page }) => {
|
||||
await page.goto(
|
||||
'http://localhost:8080/_debug/init-page?type=importMarkdown'
|
||||
);
|
||||
await page.waitForSelector('rich-text');
|
||||
const pageId = await page.evaluate(async () => {
|
||||
// @ts-ignore
|
||||
return globalThis.page.id;
|
||||
});
|
||||
expect(pageId).toBe('page0');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user