mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-10-07 16:38:34 +08:00
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
33 lines
763 B
TypeScript
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"] },
|
|
},
|
|
],
|
|
});
|