feat(design): add IMS Admin primitives (Button, StatusTag, Checkbox, FilterChip, Segmented, Avatar, Drawer) and restyle Field, Card, Modal
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -667,8 +667,8 @@ describe('FilterChip', () => {
|
||||
const options = [{ value: 'open', label: 'Open' }, { value: 'closed', label: 'Closed' }]
|
||||
|
||||
it('unset shows the label and a select with an empty option', () => {
|
||||
render(<FilterChip label="Status" value="" options={options} onChange={() => {}} />)
|
||||
expect(screen.getByText('Status')).toBeTruthy()
|
||||
const { container } = render(<FilterChip label="Status" value="" options={options} onChange={() => {}} />)
|
||||
expect(container.querySelector('label > span')?.textContent).toBe('Status')
|
||||
expect((screen.getByLabelText('Status') as HTMLSelectElement).value).toBe('')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user