12 lines
380 B
TypeScript
12 lines
380 B
TypeScript
|
|
import { expect, type Locator, type Page } from "@playwright/test"
|
||
|
|
|
||
|
|
export const APP_READY_TIMEOUT = 30_000
|
||
|
|
|
||
|
|
export async function expectAppVisible(locator: Locator) {
|
||
|
|
await expect(locator).toBeVisible({ timeout: APP_READY_TIMEOUT })
|
||
|
|
}
|
||
|
|
|
||
|
|
export async function expectSessionTitle(page: Page, title: string) {
|
||
|
|
await expectAppVisible(page.getByRole("heading", { name: title }))
|
||
|
|
}
|