mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +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.
50 lines
1.7 KiB
TypeScript
50 lines
1.7 KiB
TypeScript
/**
|
|
* Source of truth for the App Router migration E2E suites.
|
|
*
|
|
* Add an entry (legacy sidebar page id -> route segment) once a page's migration
|
|
* has MERGED to the branch under test. Consumers pick it up automatically:
|
|
* - migration smoke (tests/migration/migratedPages.spec.ts), via MIGRATED_E2E_SEGMENTS:
|
|
* default mount: npm run e2e:migration
|
|
* server-root-path mount: SERVER_ROOT_PATH=/<root> npm run e2e:migration:root
|
|
* - navigation specs that assert per-page URLs (tests/navigation/sidebar.spec.ts)
|
|
*
|
|
* Keep this in lockstep with MIGRATED_PAGES in src/utils/migratedPages.ts.
|
|
*/
|
|
export const MIGRATED_E2E_PAGES: Record<string, string> = {
|
|
"api-keys": "api-keys",
|
|
models: "models-and-endpoints",
|
|
api_ref: "api-reference",
|
|
"llm-playground": "playground",
|
|
projects: "projects",
|
|
"access-groups": "access-groups",
|
|
budgets: "budgets",
|
|
workflows: "workflows",
|
|
"guardrails-monitor": "guardrails-monitor",
|
|
"mcp-servers": "mcp-servers",
|
|
"search-tools": "search-tools",
|
|
"tag-management": "tag-management",
|
|
"vector-stores": "vector-stores",
|
|
memory: "memory",
|
|
policies: "policies",
|
|
guardrails: "guardrails",
|
|
prompts: "prompts",
|
|
"tool-policies": "tool-policies",
|
|
skills: "skills",
|
|
caching: "caching",
|
|
"cost-tracking": "cost-tracking",
|
|
"transform-request": "transform-request",
|
|
"ui-theme": "ui-theme",
|
|
logs: "logs",
|
|
"admin-panel": "admin-panel",
|
|
"logging-and-alerts": "logging-and-alerts",
|
|
"model-hub-table": "model-hub-table",
|
|
new_usage: "usage",
|
|
usage: "old-usage",
|
|
agents: "agents",
|
|
"router-settings": "router-settings",
|
|
users: "users",
|
|
teams: "teams",
|
|
organizations: "organizations",
|
|
};
|
|
|
|
export const MIGRATED_E2E_SEGMENTS: string[] = [...new Set(Object.values(MIGRATED_E2E_PAGES))];
|