(index: number, eventInit?: PointerEventInit)
| 45 | |
| 46 | /** Focuses the option before clicking it, in the order a real pointer click does. */ |
| 47 | const focusAndClick = async (index: number, eventInit?: PointerEventInit) => { |
| 48 | optionElements[index].focus(); |
| 49 | await fixture.whenStable(); |
| 50 | await click(index, eventInit); |
| 51 | }; |
| 52 | |
| 53 | const space = async (modifierKeys?: ModifierKeys) => await keydown(' ', modifierKeys); |
| 54 | const enter = async (modifierKeys?: ModifierKeys) => await keydown('Enter', modifierKeys); |
no test coverage detected