import {render, screen, userEvent} from 'sentry-test/reactTestingLibrary'; import RadioGroupPanel from 'sentry/views/alerts/wizard/radioPanelGroup'; describe('RadioGroupPanel', function () { it('calls onChange when clicked', async function () { const mock = jest.fn(); render( ); await userEvent.click(screen.getByText('Choice Three')); expect(mock).toHaveBeenCalledWith(expect.any(String), expect.any(Object)); }); it('Renders extra content', function () { const mock = jest.fn(); render( ); expect(screen.getByText('extra content')).toBeInTheDocument(); }); });