MCPcopy Create free account
hub / github.com/adobe/react-spectrum / TestComboBox

Function TestComboBox

packages/react-aria-components/test/ComboBox.test.js:37–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35};
36
37let 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
56describe('ComboBox', () => {
57 let user;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected