import React from 'react'; import { renderWithTheme } from '../helper/renderWithTheme'; import Button from './Button'; test('Button in default state matches snapshot', () => { const { container } = renderWithTheme(, {}); expect(container.firstChild).toMatchSnapshot(); }); test('Primary Button as "default" color variant matches snapshot', () => { const { container } = renderWithTheme( , {}, ); expect(container.firstChild).toMatchSnapshot(); }); test('Primary Button as "inverse" color variant matches snapshot', () => { const { container } = renderWithTheme( , {}, ); expect(container.firstChild).toMatchSnapshot(); }); test('Primary Button as "highlight" color variant matches snapshot', () => { const { container } = renderWithTheme( , {}, ); expect(container.firstChild).toMatchSnapshot(); }); test('Secondary Button as "default" color variant matches snapshot', () => { const { container } = renderWithTheme( , {}, ); expect(container.firstChild).toMatchSnapshot(); }); test('Secondary Button as "inverse" color variant matches snapshot', () => { const { container } = renderWithTheme( , {}, ); expect(container.firstChild).toMatchSnapshot(); }); test('Secondary Button as "highlight" color variant matches snapshot', () => { const { container } = renderWithTheme( , {}, ); expect(container.firstChild).toMatchSnapshot(); }); test('Button in loading state matches snapshot', () => { const { container } = renderWithTheme(, {}); expect(container.firstChild).toMatchSnapshot(); }); test('Small Button matches snapshot', () => { const { container } = renderWithTheme(, {}); expect(container.firstChild).toMatchSnapshot(); }); test('Small Button in loading state matches snapshot', () => { const { container } = renderWithTheme( , {}, ); expect(container.firstChild).toMatchSnapshot(); });