mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-07 05:16:30 +03:00
16 lines
369 B
TypeScript
16 lines
369 B
TypeScript
import type { Page } from '@playwright/test';
|
|
|
|
export const coreUrl = 'http://localhost:8080';
|
|
|
|
export async function openHomePage(page: Page) {
|
|
await page.goto(coreUrl);
|
|
}
|
|
|
|
export async function openPluginPage(page: Page) {
|
|
await page.goto(`${coreUrl}/_plugin/index.html`);
|
|
}
|
|
|
|
export async function open404Page(page: Page) {
|
|
await page.goto(`${coreUrl}/404`);
|
|
}
|