litellm/tests/e2e/ui/integration.config.ts
2026-11-11 15:38:27 -08:00

29 lines
929 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
import * as path from "path";
import { ARTIFACT_DIR, UI_BASE_URL } from "./constants";
export default defineConfig({
testDir: "./tests/integrationCritical",
testMatch: "*.spec.ts",
fullyParallel: false,
forbidOnly: true,
retries: 0,
workers: 1,
timeout: 120_000,
expect: { timeout: 10_000 },
reporter: [
["line"],
["junit", { outputFile: path.join(ARTIFACT_DIR, "browser-junit.xml") }],
["json", { outputFile: path.join(ARTIFACT_DIR, "browser-results.json") }],
],
outputDir: path.join(ARTIFACT_DIR, "browser-output"),
use: {
...devices["Desktop Chrome"],
baseURL: UI_BASE_URL,
// The proxy closes idle keep-alive sockets after 5s and a reused one fails with "socket hang up"
extraHTTPHeaders: { Connection: "close" },
actionTimeout: 15_000,
navigationTimeout: 30_000,
trace: "retain-on-failure",
},
});