litellm/ui
Jason Cook c3d29a1ded test(ui): add vitest coverage for the 3 new OAuth login components
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>
2026-04-17 11:31:52 -04:00
..
litellm-dashboard test(ui): add vitest coverage for the 3 new OAuth login components 2026-04-17 11:31:52 -04:00