import * as React from 'react'; import render from '../../_utils/tests/render'; import Button from '../Button'; import Set from '../../Set'; // @ts-ignore import Group from '../../Group'; it('renders correctly for a default button', () => { const { container } = render(); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a button with a custom element', () => { const { container } = render( ); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a button with a palette prop set', () => { const { container } = render(); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for an outlined button', () => { const { container } = render(); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a link button', () => { const { container } = render(); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a ghost button', () => { const { container } = render(); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a button that is loading', () => { const { container } = render(); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a colored button that is loading', () => { const { container } = render( ); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a link button that is loading', () => { const { container } = render( ); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for an outlined button that is loading', () => { const { container } = render( ); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a disabled button', () => { const { container } = render(); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a list of buttons', () => { const { container } = render( ); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for grouped buttons', () => { const { container } = render( ); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a button with a left icon', () => { const { container } = render(); expect(container.firstChild).toMatchSnapshot(); }); it('renders correctly for a button with a right icon', () => { const { container } = render(); expect(container.firstChild).toMatchSnapshot(); });