litellm/tests/e2e/ui/tests/proxy-admin
yuneng-jiang 37b3a697c7
fix(ui): preserve key settings drafts during background refreshes (#41350)
* fix(ui): preserve key settings drafts during background refreshes

* fix(ui): refresh untouched key settings while preserving edits

* fix(ui): keep team-change MCP clears across key refreshes

clearMcpGrants now marks the MCP fields dirty, so a background refresh with
keepDirtyValues no longer restores the grants a team change just cleared.
Also adapts the draft tests to the onSubmit(values, dirtyFields) signature
on main and asserts a refresh does not mark untouched fields dirty, since the
team admin member-key path rejects saves with non-budget dirty fields.
KeyEditView becomes a one-line arrow to stay under the max-lines limit.

* fix(ui): keep MCP tool defaults out of a key's edited fields

MCPToolPermissions writes non-delete tool defaults for unrestricted servers
on mount. Marking that write dirty made a team admin's budget-only save on a
member key get rejected for editing mcp_tool_permissions. onChange now says
whether a write is a default or a user edit, and the key editor dirties only
edits.

The edit session is now keyed by token or token_id, matching the form's own
fallback, so switching between keys that only carry token_id starts fresh.

* fix(ui): keep a new MCP server's default tool limits across refreshes

Default tool writes for a server the user just added in this edit session
are part of that edit, so they are marked dirty and survive a background
refresh. Defaults written for an already saved server stay clean, so a team
admin's budget-only save on a member key is still accepted.
2026-10-16 17:20:46 -07:00
..
keyBlocking.spec.ts test(e2e): wait for serving propagation in UI journeys 2026-09-11 10:25:43 -07:00
keyBudgetWindow.spec.ts fix(ui): preserve key settings drafts during background refreshes (#41350) 2026-10-16 17:20:46 -07:00
keys.spec.ts test(e2e/ui): stop the suite failing on things that are not regressions (#39063) 2026-09-01 12:34:57 -07:00
license.spec.ts
secondAdmin.spec.ts fix(e2e): onboard dashboard fixtures through invitations 2026-09-15 17:44:18 -07:00
teamGuardrailRemoval.spec.ts test(e2e/ui): cover member role and budget edits, member permission delegation, and team guardrail removal (#40042) 2026-09-07 11:18:16 -07:00
teamMemberEdit.spec.ts test(e2e/ui): cover member role and budget edits, member permission delegation, and team guardrail removal (#40042) 2026-09-07 11:18:16 -07:00
teams.spec.ts fix(security): remove the publicly known master key from the repo (#44718) 2026-10-06 10:55:24 -07:00
teamSettings.spec.ts test(e2e/ui): cover the team Settings tab (#39058) 2026-09-01 12:35:45 -07:00