Files
OpenHands/playwright.bind-policy.config.ts
T
sandbox-kaph[bot] 3c61184ea6 test: capture Playwright PNGs for the loopback bind fix
Summary: Add a chromium bind-policy E2E that asserts off-loopback static-server GET / has no session key, checks live ingress on 127.0.0.1:8000 is not reachable on the LAN, and writes PNG assets for the PR. Drop the SVG GitHub would not render.

Upstream: OpenHands/OpenHands#16879
Labels: type:bug
2026-08-29 23:27:23 +00:00

33 lines
763 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
/**
* Bind-policy E2E: static-server session-key injection + optional live
* ingress at http://127.0.0.1:8000 (set OH_INGRESS_URL to override).
*
* Does not start Vite. Chromium only.
*
* npx playwright test --config=playwright.bind-policy.config.ts
*/
export default defineConfig({
testDir: "./tests/e2e/bind-policy",
testMatch: /.*\.spec\.ts/,
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: 0,
workers: 1,
timeout: 60_000,
reporter: [["list"]],
use: {
...devices["Desktop Chrome"],
ignoreHTTPSErrors: true,
trace: "off",
video: "off",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
});