Skip to content

Commit

Permalink
chore: MultiComboBox.test.tsxを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiM committed Nov 18, 2024
1 parent 0676f49 commit 738ed7d
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions packages/smarthr-ui/src/components/ComboBox/MultiComboBox.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,23 @@ describe('SingleComboBox', () => {
const deleteButtons = () => screen.getAllByRole('button', { name: '削除' })

const template = (args: Partial<ComponentProps<typeof MultiComboBox>>) => (
<FormControl title="コンボボックス">
<MultiComboBox
name="default"
items={[
{ label: 'option 1', value: 'value-1' },
{ label: 'option 2', value: 'value-2' },
{ label: 'option 3', value: 'value-3' },
{ label: 'option 4', value: 'value-4' },
{ label: 'option 5', value: 'value-5' },
]}
selectedItems={[{ label: 'option 1', value: 'value-1' }]}
// eslint-disable-next-line smarthr/jsx-start-with-spread-attributes
{...args}
/>
</FormControl>
<form>
<FormControl title="コンボボックス">
<MultiComboBox
name="default"
items={[
{ label: 'option 1', value: 'value-1' },
{ label: 'option 2', value: 'value-2' },
{ label: 'option 3', value: 'value-3' },
{ label: 'option 4', value: 'value-4' },
{ label: 'option 5', value: 'value-5' },
]}
selectedItems={[{ label: 'option 1', value: 'value-1' }]}
// eslint-disable-next-line smarthr/jsx-start-with-spread-attributes
{...args}
/>
</FormControl>
</form>
)

it('アイテムを選択できること', async () => {
Expand Down

0 comments on commit 738ed7d

Please sign in to comment.