mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
Relocates ui/litellm-dashboard/e2e_tests to tests/e2e/ui so all end to end suites live under tests/e2e. The suite stays in TypeScript and becomes a self-contained npm package with its own package.json, lockfile and tsconfig instead of leaning on the dashboard's toolchain; the dashboard drops its @playwright/test dependency, e2e scripts and knip/vitest/tsconfig carve-outs. CI paths follow the move: both CircleCI jobs (main e2e and the SERVER_ROOT_PATH migration smoke) and the test_server_root_path workflow now install and run Playwright from tests/e2e/ui, with the node cache keyed on both lockfiles. classify_changes.sh treats tests/e2e/ui as client so spec edits keep skipping backend jobs. The suite's mock LLM fixture is excluded from the e2e basedpyright zero-error gate in pyrightconfig.json since it belongs to the TS suite, not the typed Python harness.
32 lines
935 B
TypeScript
32 lines
935 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
// Minimal config for the SERVER_ROOT_PATH redirect spec. Deliberately does NOT
|
|
// reuse the main e2e config because:
|
|
// - globalSetup logs in via http://localhost:4000/ui/login, which 404s when
|
|
// the proxy is mounted under a non-root path.
|
|
// - The redirect spec must run against a clean, unauthenticated session, so
|
|
// no storage state should be loaded.
|
|
export default defineConfig({
|
|
testDir: "./tests/login",
|
|
testMatch: ["serverRootPathRedirect.spec.ts"],
|
|
fullyParallel: false,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: 1,
|
|
reporter: "list",
|
|
use: {
|
|
trace: "on-first-retry",
|
|
actionTimeout: 15 * 1000,
|
|
navigationTimeout: 30 * 1000,
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
],
|
|
timeout: 60 * 1000,
|
|
expect: {
|
|
timeout: 10 * 1000,
|
|
},
|
|
});
|