(
element: HTMLInputElement,
init: MouseEventInit | undefined,
{clickCount}: clickOptions & PointerOptions,
)
| 48 | } |
| 49 | |
| 50 | function clickBooleanElement( |
| 51 | element: HTMLInputElement, |
| 52 | init: MouseEventInit | undefined, |
| 53 | {clickCount}: clickOptions & PointerOptions, |
| 54 | ) { |
| 55 | fireEvent.pointerDown(element, init) |
| 56 | if (!element.disabled) { |
| 57 | fireEvent.mouseDown( |
| 58 | element, |
| 59 | getMouseEventOptions('mousedown', init, clickCount), |
| 60 | ) |
| 61 | } |
| 62 | focus(element) |
| 63 | fireEvent.pointerUp(element, init) |
| 64 | if (!element.disabled) { |
| 65 | fireEvent.mouseUp( |
| 66 | element, |
| 67 | getMouseEventOptions('mouseup', init, clickCount), |
| 68 | ) |
| 69 | fireClick(element, getMouseEventOptions('click', init, clickCount)) |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | function clickElement( |
| 74 | element: Element, |
no test coverage detected