| 35 | }; |
| 36 | |
| 37 | let TestComboBox = props => ( |
| 38 | <ComboBox name="test-combobox" defaultInputValue="C" data-foo="bar" {...props}> |
| 39 | <Label>Favorite Animal</Label> |
| 40 | <Input /> |
| 41 | <Button /> |
| 42 | {props.selectionMode === 'multiple' && <ComboBoxValue placeholder="No items selected" />} |
| 43 | <Text slot="description">Description</Text> |
| 44 | <Text slot="errorMessage">Error</Text> |
| 45 | <Popover> |
| 46 | <ListBox renderEmptyState={renderEmptyState}> |
| 47 | <ListBoxItem id="1">Cat</ListBoxItem> |
| 48 | <ListBoxItem id="2">Dog</ListBoxItem> |
| 49 | <ListBoxItem id="3">Kangaroo</ListBoxItem> |
| 50 | <ListBoxLoadMoreItem>loading</ListBoxLoadMoreItem> |
| 51 | </ListBox> |
| 52 | </Popover> |
| 53 | </ComboBox> |
| 54 | ); |
| 55 | |
| 56 | describe('ComboBox', () => { |
| 57 | let user; |
nothing calls this directly
no outgoing calls
no test coverage detected