import React from 'react'; import { render } from '../../test-utils'; import { TextButton } from '../index'; import 'jest-styled-components'; import { COLORS } from '../../styles'; import { Size } from '../..'; describe('', () => { it('Renders primary button', async () => { const { queryByText, getByTestId } = render( TestButton , ); expect(queryByText('TestButton')).toBeDefined(); /*expect(getByTestId('TestButton')).toHaveStyleRule('background-color', COLORS.primary); expect(getByTestId('TestButton')).toHaveStyleRule('cursor', 'pointer'); expect(getByTestId('TestButton')).toHaveStyleRule('color', 'white');*/ }); it('Renders secondary button', async () => { const { queryByText, getByTestId } = render( TestButton , ); expect(queryByText('TestButton')).toBeDefined(); /*expect(getByTestId('TestButton')).toHaveStyleRule('color', COLORS.primary); expect(getByTestId('TestButton')).toHaveStyleRule('border-color', COLORS.primary); expect(getByTestId('TestButton')).toHaveStyleRule('background-color', 'white');*/ }); it('Renders tertiary button', async () => { const { queryByText, getByTestId } = render( TestButton , ); expect(queryByText('TestButton')).toBeDefined(); /*expect(getByTestId('TestButton')).toHaveStyleRule('background-color', 'white'); expect(getByTestId('TestButton')).toHaveStyleRule('border-color', COLORS.neutral_100); expect(getByTestId('TestButton')).toHaveStyleRule('color', COLORS.primary);*/ }); });