mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-24 04:52:14 +03:00
20 lines
520 B
TypeScript
20 lines
520 B
TypeScript
import type { Page } from '@playwright/test';
|
|
import { expect } from '@playwright/test';
|
|
|
|
export const coreUrl = 'http://localhost:8080';
|
|
|
|
export async function openHomePage(page: Page) {
|
|
await page.goto(coreUrl);
|
|
}
|
|
|
|
export async function open404Page(page: Page) {
|
|
await page.goto(`${coreUrl}/404`);
|
|
}
|
|
|
|
export async function openJournalsPage(page: Page) {
|
|
await page.getByTestId('slider-bar-journals-button').click();
|
|
await expect(
|
|
page.locator('.doc-title-container:has-text("Today")')
|
|
).toBeVisible();
|
|
}
|