import React from 'react'; import { describe, expect, it } from 'vitest'; import { renderToStaticMarkup } from 'react-dom/server'; import { SsoProviderSection } from './sso-provider-section.js'; describe('SsoProviderSection', () => { it('renders configured providers with callback, sync, and fallback details', () => { const html = renderToStaticMarkup( , ); expect(html).toContain('WorkOS'); expect(html).toContain('/api/auth/oauth2/callback/workos'); expect(html).toContain('Team sync claim: organization_id'); expect(html).toContain('SAML fallback: https://sso.example.com/realms/mosaic/protocol/saml'); }); });