mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 08:50:50 +08:00
test: add test case for blocksuite editor (#1528)
This commit is contained in:
@@ -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