mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-23 07:59:33 -10:00
7 lines
374 B
TypeScript
7 lines
374 B
TypeScript
import type { Page } from "@playwright/test"
|
|
|
|
export async function openWithDirection(page: Page, route: string, direction: "ltr" | "rtl") {
|
|
const server = `http://${process.env.PLAYWRIGHT_SERVER_HOST ?? "127.0.0.1"}:${process.env.PLAYWRIGHT_SERVER_PORT ?? "4096"}`
|
|
await page.goto(`/e2e/utils/app-direction.html?${new URLSearchParams({ server, route, direction })}`)
|
|
}
|