Files
AFFiNE-Mirror/tests/parallels/debug-init-page.spec.ts
T
LongYinan d436325a5c style: add ban-ts-comment rule (#2738)
(cherry picked from commit 2e975e79dd)
2023-06-20 14:44:27 +08:00

12 lines
369 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');
await page.waitForSelector('v-line');
const pageId = await page.evaluate(async () => {
return globalThis.page.id;
});
expect(pageId).toBe('page0');
});