Download packages/app/e2e/utils/waits.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/app/e2e/utils/waits.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/app/e2e/utils/waits.ts
-
curl -L -o waits.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/app/e2e/utils/waits.ts
380 Bytes
| 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 })) | |
| } | |