mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 10:45:33 -04:00
7f33576f46
Co-authored-by: Brendan Allan <git@brendonovich.dev>
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 }))
|
|
}
|