MCPcopy Create free account
hub / github.com/react-component/select / toggleOpen

Function toggleOpen

tests/utils/common.ts:19–25  ·  view source on GitHub ↗
(wrapper: any)

Source from the content-addressed store, hash-verified

17}
18
19export function toggleOpen(wrapper: any) {
20 if (wrapper instanceof HTMLElement) {
21 fireEvent.mouseDown(wrapper.querySelector('.rc-select-selector'));
22 return;
23 }
24 wrapper.find('.rc-select-selector').simulate('mousedown');
25}
26
27export function selectItem(wrapper: any, index: number = 0) {
28 if (wrapper instanceof HTMLElement) {

Callers 10

Combobox.test.tsxFile · 0.90
Select.test.tsxFile · 0.90
Tags.test.tsxFile · 0.90
Multiple.test.tsxFile · 0.90
removeSelectedTestFunction · 0.90
dynamicChildrenTestFunction · 0.90
onSelectValueFunction · 0.85
OptionListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…