Repository navigation
test(e2e): match the Internal Users search placeholder shipped by #39604 - #39678
mateo-berri merged 1 commit into
Conversation
PR #39604 renamed the Internal Users search box placeholder to "Search by email or ID…" but left searchUsers.spec.ts looking for the old "Search by email…" copy, so e2e_ui_testing has been red on litellm_internal_staging since it merged. Point the locator at the shipped placeholder
Greptile SummaryThis PR updates the Internal Users E2E test locator to match the dashboard’s current search placeholder.
Confidence Score: 5/5The PR appears safe to merge because the corrected locator matches the current unique search input and leaves all behavioral assertions intact. The only changed line updates a stale exact-placeholder locator to the value rendered by the dashboard, preserving the same search, filtering, clearing, and restoration checks.
|
| Filename | Overview |
|---|---|
| tests/e2e/ui/tests/users/searchUsers.spec.ts | Correctly aligns the Playwright locator with the shipped placeholder without weakening the existing test behavior. |
Reviews (1): Last reviewed commit: "test(e2e): match the Internal Users sear..." | Re-trigger Greptile
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit c1a607f. Configure here.
6071a07
into
litellm_internal_staging
TLDR
Problem this solves:
ci/circleci: e2e_ui_testingis red on every branch since fix(ui): let the Internal Users search box match user_id as well as email #39604Search by email…placeholderSearch by email or ID…How it solves it:
User Flow
Before: a contributor opens a PR and gets a red e2e_ui_testing they did nothing to cause
e2e_ui_testingon it, and the job page at https://app.circleci.com/pipelines/github/BerriAI/litellm showsInternal Users Search › narrows the table to the matching email, and restores it when clearedfailing all three attempts withexpect(locator).toBeVisible() failed: element(s) not foundforgetByPlaceholder('Search by email…')ci/circleci: e2e_ui_testingas failed, and they have to explain to the reviewer that the red is unrelated before handing offAfter: the same PR gets a green e2e_ui_testing
e2e_ui_testingon it, and the job page shows the Internal Users Search spec typingnoteam@into the box that readsSearch by email or ID…, seeing onenoteam@test.localrow, then seeingadmin@test.localagain once the box is cleared, and the job finishes greenci/circleci: e2e_ui_testingas passed, and they hand off with nothing to explainRelevant issues
Linear ticket
Resolves LIT-6919
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more@greptileaito re-request a review after pushing changes)Screenshots / Proof of Fix
Stack: the
tests/e2e/ui/run_e2e.shsteps kept alive on random ports (docker postgres:16 on :34602, a freshnpm run buildof the dashboard copied into the proxy's static UI dir, prisma db push, the mock LLM on :50560, the proxy on :22604 withtests/e2e/ui/fixtures/config.yml,fixtures/seed.sql). The dashboard build is the same on both sides because this PR only touches the spec, so the two runs differ only in the spec file, exactly as CI would see itBefore (ab0478f)
cd tests/e2e/ui && E2E_UI_BASE_URL=http://127.0.0.1:22604 npx playwright test --config playwright.config.ts tests/users/searchUsers.spec.ts --reporter=listAfter (c1a607f)
cd tests/e2e/ui && E2E_UI_BASE_URL=http://127.0.0.1:22604 npx playwright test --config playwright.config.ts tests/users/searchUsers.spec.ts --reporter=listci/circleci: e2e_ui_testingon this PR passed at c1a607f: https://app.circleci.com/workflow/eada98dd-4c37-4617-a058-64d89d271ec4/job/c239353c-da17-4f25-8842-0f2e4ed89d15Type
✅ Test
Caveats (if any)
Low
/Search by email/regex would also match the member search modal'sSearch by emailbox, adata-testidlocator breaks the suite's user-observable locator rule, and the dashboard unit test pins the same copy, so a wording change already fails in the PR that makes itQA runbook
E2E_KEEP_ALIVE=1 tests/e2e/ui/run_e2e.sh(seeds admin@test.local and noteam@test.local, among others)sk-1234; the search box above the table readsSearch by email or ID…noteam@into it and expect the table to shrink to the singlenoteam@test.localrowadmin@test.localrow to come backFinal Attestation
The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR
c1a607f passes /live-pr-risk