import React from 'react'
import { snapshot } from '../utils/test-utils'
import { GridCellButton } from './cell-button'
import { Calendar } from '@planview/pv-icons'
import { render } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
describe('GridCellButton', () => {
snapshot('Minimal props', )
snapshot('Label', )
snapshot('Icon', } />)
describe('Interaction', () => {
it('should call onClick callback', async () => {
const callBack = jest.fn()
const { getByRole } = render(
)
await userEvent.click(getByRole('button'))
expect(callBack).toHaveBeenCalled()
})
})
})