mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-26 01:12:21 +00:00
CONTRIBUTING.md requires corresponding tests for new UI components. Adds: - OAuthDeviceLoginButton.test.tsx (6 cases) — Sign-in button disabled state, startCall invocation, user-code + verification-URL rendering, onSuccess callback on poll success, error-state rendering on poll failure, and cancel flow. - ChatGPTLoginButton.test.tsx (1 case) — renders with the ChatGPT label. - CopilotLoginButton.test.tsx (1 case) — renders with the GitHub Copilot label. Real timers throughout; polling tests wait up to 10s for the 3s-interval first poll to fire. 20/20 local tests pass across my new + adjacent existing UI test files; ``npm run build`` succeeds. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||