{description}
+ {children} +{children}
, +})); + +import { toast } from 'sonner'; +import { LoginEmailSettings } from './LoginEmailSettings'; + +const CURRENT_EMAIL = 'admin@old-domain.com'; + +const submitWithEmail = async (email: string) => { + fireEvent.change(screen.getByLabelText('New email address'), { + target: { value: email }, + }); + fireEvent.click(screen.getByRole('button', { name: 'Change email' })); +}; + +describe('LoginEmailSettings', () => { + beforeEach(() => { + vi.clearAllMocks(); + }); + + it('shows the current login email', () => { + render(