litellm/ui
Cursor Agent 05e89d9ccb
test(ui): teach TeamInfo mock about organizationKeys and stop stub buttons from submitting the form
The TeamInfo settings save path invalidates organization queries via
organizationKeys.all, and the ModelAliasManager stub renders <button>
elements without type="button", so any click inside the edit form was
submitting it. Together these masked each other: the accidental submit
threw on the missing organizationKeys export, the catch swallowed the
error, teamUpdateCall had already been recorded, and the assertion was
happy. Under CI load the pass-through routes test tipped past the 30s
testTimeout while the form was stuck mid-save.

Add organizationKeys to the mock so the invalidation succeeds and stamp
type="button" on the alias-editor stubs so Set Alias / Clear Aliases
only update parent state. The model_aliases tests now exercise the real
click Set Alias -> click Save Changes flow instead of passing on the
first accidental submit.

Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
2026-08-18 05:27:07 +00:00
..
litellm-dashboard test(ui): teach TeamInfo mock about organizationKeys and stop stub buttons from submitting the form 2026-08-18 05:27:07 +00:00
Dockerfile chore(build): move the Admin UI toolchain to Node 24 (#35801) 2026-08-04 12:36:07 -07:00
nginx.conf fix(ui): serve /ui/assets from the nginx image instead of SPA fallback (#34066) 2026-07-21 09:22:02 -07:00