litellm/ui
Cursor Agent fde80e898f
test(ui): wait for save to finish so TeamSSOSettings state updates don't leak past teardown
The 'should disable cancel button while saving' test mocks the save API with
setTimeout(100) but never waits for the promise to resolve. When the timer
fires after the test tears down, setSaving(false) tries to schedule a React
update on an unmounted root, and resolveUpdatePriority reads window on a
dead JSDOM. Vitest surfaces this as 'ReferenceError: window is not defined'
and fails the whole UI Unit Tests job intermittently.

Wait for the Edit Settings button to reappear after Save Changes so the
mocked save resolves before the test exits.

Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
2026-09-08 20:06:55 +00:00
..
litellm-dashboard test(ui): wait for save to finish so TeamSSOSettings state updates don't leak past teardown 2026-09-08 20:06:55 +00:00
Dockerfile fix(docker): bump nginx runtime to 1.31.5-alpine3.24 and pin digest to resolve critical CVEs (#39561) 2026-09-03 08:46:07 -07:00
nginx.conf fix(ui): boot the UI image as an arbitrary uid by anchoring nginx writes under /tmp (#37982) 2026-08-24 11:57:36 -07:00