Sha256: 2d21893defd83497997aa66c7c3be751a53e4a81f6c247263503122b417f5979
Contents?: true
Size: 726 Bytes
Versions: 414
Compression:
Stored size: 726 Bytes
Contents
import React from 'react' import { render, screen } from '../utilities/test-utils' import CircleIconButton from './_circle_icon_button' test('default test', () => { render( <CircleIconButton data={{ testid: 'default-test' }} icon="plus" /> ) const kit = screen.getByTestId('default-test') expect(kit).toHaveClass('pb_circle_icon_button_kit') }) test('passes loading prop to button', () => { render( <CircleIconButton data={{ testid: 'loading-test' }} icon="plus" loading /> ) const kit = screen.getByTestId('loading-test') const button = kit.querySelector('.pb_button_kit_primary_inline_enabled_loading') expect(button).toBeInTheDocument() })
Version data entries
414 entries across 414 versions & 1 rubygems