(input: HTMLInputElement, value: string)
| 93 | })) |
| 94 | |
| 95 | function changeInput(input: HTMLInputElement, value: string): void { |
| 96 | const setter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.set |
| 97 | setter?.call(input, value) |
| 98 | input.dispatchEvent(new Event('input', { bubbles: true })) |
| 99 | } |
| 100 | |
| 101 | function blurInput(input: HTMLInputElement): void { |
| 102 | input.dispatchEvent(new FocusEvent('focusout', { bubbles: true })) |