mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-12 06:43:24 +03:00
14 lines
331 B
TypeScript
14 lines
331 B
TypeScript
import { test } from '@playwright/test';
|
|
import type { Page } 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');
|
|
});
|
|
}
|