(key: string, modifierKeys: {} = {})
| 25 | let inputElement: HTMLInputElement; |
| 26 | |
| 27 | const keydown = async (key: string, modifierKeys: {} = {}) => { |
| 28 | await focus(); |
| 29 | inputElement.dispatchEvent( |
| 30 | new KeyboardEvent('keydown', { |
| 31 | key, |
| 32 | bubbles: true, |
| 33 | ...modifierKeys, |
| 34 | }), |
| 35 | ); |
| 36 | await fixture.whenStable(); |
| 37 | }; |
| 38 | |
| 39 | const input = async (value: string) => { |
| 40 | await focus(); |