(index: number, eventInit?: PointerEventInit, targets?: HTMLElement[])
| 34 | }; |
| 35 | |
| 36 | const click = async (index: number, eventInit?: PointerEventInit, targets?: HTMLElement[]) => { |
| 37 | (targets || optionElements)[index].dispatchEvent( |
| 38 | new PointerEvent('click', { |
| 39 | bubbles: true, |
| 40 | ...eventInit, |
| 41 | }), |
| 42 | ); |
| 43 | await fixture.whenStable(); |
| 44 | }; |
| 45 | |
| 46 | /** Focuses the option before clicking it, in the order a real pointer click does. */ |
| 47 | const focusAndClick = async (index: number, eventInit?: PointerEventInit) => { |
no test coverage detected