Repository navigation
test(e2e): move Admin UI Playwright suite to tests/e2e/ui - #34196
Merged
mubashir1osmani merged 5 commits intoJul 22, 2026
Merged
Conversation
Contributor
Greptile SummaryThis PR moves the Admin UI Playwright suite into a standalone package under
Confidence Score: 5/5This looks safe to merge.
|
| Filename | Overview |
|---|---|
| .circleci/config.yml | Updates both UI e2e jobs to install and run the relocated package and collect its artifacts. |
| .github/workflows/test_server_root_path.yml | Runs the server-root-path suite from its new package and uploads results from the new directory. |
| .circleci/scripts/classify_changes.sh | Preserves the suite's existing client-change classification after moving it outside the dashboard directory. |
| tests/e2e/ui/run_e2e.sh | Derives the repository and dashboard paths from the relocated script and runs Playwright from its package. |
| tests/e2e/ui/package.json | Defines the standalone Playwright package and carries over the four e2e commands. |
| tests/e2e/ui/tsconfig.json | Adds a strict no-emit TypeScript configuration for the relocated suite. |
| tests/e2e/ui/tests/settings/routerSettings.spec.ts | Updates the type-only schema import to resolve from the dashboard source at its new relative path. |
| ui/litellm-dashboard/package.json | Removes Playwright dependencies and commands that now belong to the standalone e2e package. |
| pyrightconfig.json | Excludes the relocated TypeScript suite and its existing Python fixture from the Python type-checking scope. |
Reviews (1): Last reviewed commit: "test(e2e): move Admin UI Playwright suit..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
yuneng-berri
approved these changes
Jul 21, 2026
ryan-crabbe-berri
enabled auto-merge (squash)
July 22, 2026 00:03
ryan-crabbe-berri
disabled auto-merge
July 22, 2026 00:03
ryan-crabbe-berri
enabled auto-merge (squash)
July 22, 2026 00:06
ryan-crabbe-berri
disabled auto-merge
July 22, 2026 00:12
mateo-berri
approved these changes
Jul 22, 2026
| // esbuild. It types the round-trips below so mistakes surface in the editor; the live | ||
| // test against the real proxy is what actually enforces the contract. | ||
| import type { components } from "../../../src/lib/http/schema"; | ||
| import type { components } from "../../../../../ui/litellm-dashboard/src/lib/http/schema"; |
Contributor
There was a problem hiding this comment.
nit: can this be absolute?
Contributor
2 of 10 tasks
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.
ryan-crabbe-berri
force-pushed
the
litellm_move_ui_e2e_to_tests_e2e
branch
from
July 22, 2026 18:24
f1b567f to
1a901d7
Compare
mubashir1osmani
enabled auto-merge (squash)
July 22, 2026 18:25
…o_callback_session Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ssion anomaly unit tests Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Mubashir Osmani seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
…hard) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
mubashir1osmani
merged commit Jul 22, 2026
0fcaadf
into
litellm_internal_staging
76 of 77 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relevant issues
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
All three Playwright configs collect their full suites from the new location (at 9355b9c):
The Python harness is untouched by the new sibling folder:
The full browser run at the new paths is exercised by the
e2e_ui_testingande2e_ui_testing_server_root_pathCircleCI jobs on this PR, plus thetest_server_root_pathGitHub workflowType
🚄 Infrastructure
✅ Test
Changes
Moves the Admin UI Playwright suite from
ui/litellm-dashboard/e2e_teststotests/e2e/uiso every end to end suite lives undertests/e2e. The suite stays in TypeScript; Playwright only collects*.spec.tsfiles and pytest only collects*.pyfiles, so the two harnesses coexist without seeing each otherThe suite becomes a self-contained npm package with its own
package.json, lockfile and tsconfig instead of borrowing the dashboard's toolchain. The dashboard drops its@playwright/testdependency, the foure2e*npm scripts (they now live intests/e2e/ui/package.json), and the knip, vitest and tsconfig carve-outs that existed only to keep the e2e folder out of dashboard tooling. The one import that reached into the dashboard, a type-only import of the generated OpenAPI schema inrouterSettings.spec.ts, now points atui/litellm-dashboard/src/lib/http/schemaexplicitlyCI follows the move. Both CircleCI jobs install the new package, run Playwright from
tests/e2e/ui, and read the seed SQL, mock LLM server and proxy config from the new fixture paths; the node cache key is bumped to v3 and keyed on both lockfiles.classify_changes.shclassifiestests/e2e/ui/*as client so spec-only edits keep skipping backend jobs (previously anything outsideui/counted as backend).run_e2e.shderives the dashboard directory from the repo root since it is no longer a parent of the scripttests/e2e/ui/fixtures/mock_llm_server/server.pyis excluded from the e2e basedpyright zero-error gate inpyrightconfig.json(same treatment astests/e2e/claude_code); it is a fixture of the TS suite, not part of the typed Python harness, and predates that gate.tests/e2e/CLAUDE.mddocuments the newui/suite folder and that the Python harness rules do not apply inside itOne follow-up commit catches two specs up with UI refactors that had already landed on staging: the key info header moved Delete Key into the "More key actions" menu and the credentials table moved row actions into a dropdown, so the Delete key and credential-edit specs were timing out on buttons that no longer exist. Both failures reproduce against a proxy serving a fresh dashboard build and pass after pointing the specs at the menus
QA runbook
No test behavior changed beyond catching the Delete key and credential-edit specs up with the dropdown UI they now drive. To reproduce the whole suite at its new home:
./tests/e2e/ui/run_e2e.shfrom the repo root with docker running and ports 4000, 5432 and 8090 free; it starts postgres, seeds it, builds the dashboard into the proxy, boots the mock LLM server and the proxy, then runs all 86 specsui/litellm-dashboard$ npm run e2eproduced before this PRFinal Attestation