Skip to content

chore(test): remove dead old Playwright e2e suite#28632

Merged
yuneng-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_remove_old_e2e_suite
May 22, 2026
Merged

chore(test): remove dead old Playwright e2e suite#28632
yuneng-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_remove_old_e2e_suite

Conversation

@ryan-crabbe-berri

Copy link
Copy Markdown
Collaborator

Summary

Deletes the unused Playwright suite under tests/proxy_admin_ui_tests/e2e_ui_tests/ along with its only-used-here playwright.config.ts, package.json / lockfile, and utils/login.ts. Nothing in CI runs these specs (the CircleCI e2e_ui_testing job globs tests/proxy_admin_ui_tests/**/test_*.py — Python only — and runs the modern Playwright suite under ui/litellm-dashboard/e2e_tests/). The Python unit tests directly under tests/proxy_admin_ui_tests/ (test_key_management.py, test_role_based_access.py, etc.) are untouched.

Every active spec being removed is already duplicated by the modern suite at ui/litellm-dashboard/e2e_tests/tests/:

  • login_to_ui.spec.tslogin/login.spec.ts
  • require_auth_for_dashboard.spec.tsauth/unauthenticatedRedirect.spec.ts
  • search_users.spec.tsusers/searchUsers.spec.ts
  • view_internal_user.spec.tsusers/viewInternalUsers.spec.ts
  • view_user_info.spec.ts — ad-hoc admin user-info click; not in the QA migration list
  • team_admin.spec.ts — entirely commented out, dead since landing

This keeps ui/litellm-dashboard/e2e_tests/ as the single source of truth for UI e2e and removes a confusing second config that was easy to mistake for active coverage.

Test plan

  • grep -rn "proxy_admin_ui_tests/e2e_ui_tests\|e2e_ui_tests" returns no hits in .circleci/, scripts, docs, or remaining test files
  • CircleCI globs tests/proxy_admin_ui_tests/**/test_*.py (Python only) — unaffected
  • Modern ui/litellm-dashboard/e2e_tests/run_e2e.sh still runs against ui/litellm-dashboard/e2e_tests/playwright.config.ts

Refs LIT-3093 (E2E test coverage tracking).

The Playwright suite under tests/proxy_admin_ui_tests/e2e_ui_tests/ is no
longer wired into CI (only test_*.py is globbed) and every active spec is
duplicated by ui/litellm-dashboard/e2e_tests/tests/ (login, auth redirect,
search users, internal user list). team_admin.spec.ts was entirely
commented out. Removing the directory plus its only-used-here playwright
config, package.json/lock, and utils/login.ts keeps the canonical suite
under ui/litellm-dashboard/e2e_tests/ as the single source of truth.
@greptile-apps

greptile-apps Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Removes the unused Playwright e2e suite under tests/proxy_admin_ui_tests/e2e_ui_tests/ along with its playwright.config.ts, package.json, lockfile, and utils/login.ts. No CI job references these files (verified: .circleci/config.yml globs only tests/proxy_admin_ui_tests/**/test_*.py for Python tests, and the active Playwright job runs against ui/litellm-dashboard/e2e_tests/playwright.config.ts).

  • All deleted specs have confirmed equivalents in the modern ui/litellm-dashboard/e2e_tests/ suite, except view_user_info.spec.ts (an ad-hoc admin click test) and team_admin.spec.ts (was entirely commented out).
  • The Python unit tests directly under tests/proxy_admin_ui_tests/ are untouched.
  • Post-deletion, grep finds zero references to e2e_ui_tests across the repo, confirming a clean removal.

Confidence Score: 5/5

Pure deletion of dead, unreferenced test files — no production code or active CI paths are touched.

Every deleted file was confirmed unreferenced in CI and the broader codebase. The modern ui/litellm-dashboard/e2e_tests/ suite covers the same scenarios, and the Python tests in tests/proxy_admin_ui_tests/ are untouched. Nothing here can regress runtime behavior.

No files require special attention.

Important Files Changed

Filename Overview
tests/proxy_admin_ui_tests/e2e_ui_tests/login_to_ui.spec.ts Deleted — login spec superseded by ui/litellm-dashboard/e2e_tests/tests/login/login.spec.ts
tests/proxy_admin_ui_tests/e2e_ui_tests/require_auth_for_dashboard.spec.ts Deleted — auth redirect spec superseded by ui/litellm-dashboard/e2e_tests/tests/auth/unauthenticatedRedirect.spec.ts
tests/proxy_admin_ui_tests/e2e_ui_tests/search_users.spec.ts Deleted — search users spec superseded by ui/litellm-dashboard/e2e_tests/tests/users/searchUsers.spec.ts
tests/proxy_admin_ui_tests/e2e_ui_tests/team_admin.spec.ts Deleted — was entirely commented-out dead code since landing; no coverage lost
tests/proxy_admin_ui_tests/e2e_ui_tests/view_internal_user.spec.ts Deleted — superseded by ui/litellm-dashboard/e2e_tests/tests/users/viewInternalUsers.spec.ts
tests/proxy_admin_ui_tests/e2e_ui_tests/view_user_info.spec.ts Deleted — ad-hoc admin user-info click test with no direct equivalent; minor coverage gap noted in PR description
tests/proxy_admin_ui_tests/package.json Deleted — only served the removed e2e suite; no other consumers
tests/proxy_admin_ui_tests/package-lock.json Deleted — lockfile for the removed package.json
tests/proxy_admin_ui_tests/playwright.config.ts Deleted — old Playwright config that was only used by the removed specs
tests/proxy_admin_ui_tests/utils/login.ts Deleted — login utility only referenced by the removed specs
tests/proxy_admin_ui_tests/e2e_ui_tests/redirect-fail-screenshot.png Deleted — artifact screenshot committed alongside the now-removed spec

Reviews (1): Last reviewed commit: "chore(test): remove dead old Playwright ..." | Re-trigger Greptile

@codecov

codecov Bot commented May 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@yuneng-berri yuneng-berri enabled auto-merge (squash) May 22, 2026 18:29
@yuneng-berri yuneng-berri merged commit 6439899 into litellm_internal_staging May 22, 2026
116 of 117 checks passed
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
The Playwright suite under tests/proxy_admin_ui_tests/e2e_ui_tests/ is no
longer wired into CI (only test_*.py is globbed) and every active spec is
duplicated by ui/litellm-dashboard/e2e_tests/tests/ (login, auth redirect,
search users, internal user list). team_admin.spec.ts was entirely
commented out. Removing the directory plus its only-used-here playwright
config, package.json/lock, and utils/login.ts keeps the canonical suite
under ui/litellm-dashboard/e2e_tests/ as the single source of truth.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants