AFFiNE/tests/libs/load-page.ts
2023-02-17 15:33:32 +08:00

14 lines
331 B
TypeScript

import type { Page } from '@playwright/test';
import { test } from '@playwright/test';
interface IType {
page: Page;
}
export function loadPage() {
test.beforeEach(async ({ page }: IType) => {
await page.goto('http://localhost:8080');
// waiting for page loading end
await page.waitForSelector('#__next');
});
}