AFFiNE/tests/kit/utils/load-page.ts

17 lines
470 B
TypeScript
Raw Normal View History

2023-01-03 16:57:33 +03:00
import type { Page } from '@playwright/test';
2022-11-28 16:17:34 +03:00
export const coreUrl = 'http://localhost:8080';
export const prototypeUrl = 'http://localhost:3003';
export async function openHomePage(page: Page) {
await page.goto(coreUrl);
2022-11-28 16:17:34 +03:00
}
export async function openPluginPage(page: Page) {
await page.goto(`${coreUrl}/_plugin/index.html`);
}
export async function openPrototypeProviderStatusPage(page: Page) {
await page.goto(`${prototypeUrl}/suite/provider-status.html`);
}