mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-28 11:31:42 +03:00
12 lines
374 B
TypeScript
12 lines
374 B
TypeScript
import { test } from '@affine-test/kit/playwright';
|
|
import { expect } from '@playwright/test';
|
|
|
|
test('should have page0', async ({ page }) => {
|
|
await page.goto('http://localhost:8080/_debug/init-page.html');
|
|
await page.waitForSelector('v-line');
|
|
const pageId = await page.evaluate(async () => {
|
|
return globalThis.page.id;
|
|
});
|
|
expect(pageId).toBe('page0');
|
|
});
|