litellm/ui/litellm-dashboard/e2e_tests
ryan-crabbe-berri 577dd3b707
fix(ui): stop credential edit from persisting the masked api key (#33797)
Editing an existing LLM credential and changing only the api_base also
overwrote the stored api_key with its masked display value (e.g. sk****IA).
The edit form pre-fills fields from the credential the backend returns, whose
secrets come back masked, and the update handler sent every field straight
back; the endpoint then encrypted and stored the asterisks over the real key.

Run credential_values through stripMaskedSecrets before the PATCH so masked
placeholders are never sent, mirroring the guard the model edit form already
uses. The isMaskedSecret / stripMaskedSecrets helpers move out of
model_info_view into a shared utils module so both call sites share one
implementation.

Add a Playwright e2e that seeds a credential, edits only the api base in the
LLM Credentials tab, and asserts the outgoing PATCH no longer carries the
masked api_key while the new base persists.
2026-07-17 18:25:24 -07:00
..
fixtures feat(ui): migrate api-keys landing to App Router path route (#30699) 2026-06-18 17:38:07 -07:00
helpers fix: show and allow editing team model aliases after team creation (#33047) 2026-07-13 09:31:10 -07:00
tests fix(ui): stop credential edit from persisting the masked api key (#33797) 2026-07-17 18:25:24 -07:00
constants.ts test(e2e): assert internal-user navbar identity is scoped to that user (#29077) 2026-05-30 00:29:30 -07:00
globalSetup.ts test(ui): scrub stale return-url cookie from e2e storageState (#30317) 2026-06-22 18:11:05 -07:00
migration.serverRootPath.config.ts chore(ui): remove unused dep, delete dead file, and unblock knip (#31933) 2026-07-01 20:13:58 -07:00
migration.serverRootPath.globalSetup.ts chore(ui): remove unused dep, delete dead file, and unblock knip (#31933) 2026-07-01 20:13:58 -07:00
playwright.config.ts style(ui): run prettier --write across the dashboard (#29622) 2026-06-04 11:37:54 -07:00
run_e2e.sh test(e2e): cover PROXY_LOGOUT_URL redirect on Logout (#29080) 2026-05-30 18:19:04 -07:00
serverRootPath.config.ts refactor(ui): extract auth state into AuthContext (#28910) 2026-05-26 17:53:03 -07:00