Files
AFFiNE-Mirror/tests/affine-local/e2e/debug-init-page.spec.ts
2023-07-13 09:05:01 +00:00

13 lines
398 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 () => {
// @ts-expect-error
return globalThis.page.id;
});
expect(pageId).toBe('page0');
});