waits.ts 380 B

1234567891011
  1. import { expect, type Locator, type Page } from "@playwright/test"
  2. export const APP_READY_TIMEOUT = 30_000
  3. export async function expectAppVisible(locator: Locator) {
  4. await expect(locator).toBeVisible({ timeout: APP_READY_TIMEOUT })
  5. }
  6. export async function expectSessionTitle(page: Page, title: string) {
  7. await expectAppVisible(page.getByRole("heading", { name: title }))
  8. }