mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-26 08:26:59 +03:00
14 lines
399 B
TypeScript
14 lines
399 B
TypeScript
import { expect } from '@playwright/test';
|
|
|
|
import { test } from '../libs/playwright';
|
|
|
|
test('should have page0', async ({ page }) => {
|
|
await page.goto('http://localhost:8080/_debug/init-page?type=importMarkdown');
|
|
await page.waitForSelector('v-line');
|
|
const pageId = await page.evaluate(async () => {
|
|
// @ts-ignore
|
|
return globalThis.page.id;
|
|
});
|
|
expect(pageId).toBe('page0');
|
|
});
|