(wrapper: any, index: number = 0)
| 25 | } |
| 26 | |
| 27 | export function selectItem(wrapper: any, index: number = 0) { |
| 28 | if (wrapper instanceof HTMLElement) { |
| 29 | fireEvent.click(wrapper.querySelectorAll('.rc-select-item-option-content')[index]); |
| 30 | return; |
| 31 | } |
| 32 | wrapper.find('div.rc-select-item-option-content').at(index).simulate('click'); |
| 33 | } |
| 34 | |
| 35 | export function findSelection(wrapper: any, index: number = 0) { |
| 36 | if (wrapper instanceof HTMLElement) { |
no outgoing calls
no test coverage detected
searching dependent graphs…