You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per #843, I think this is an issue in @testing-library/user-event not JSDOM. #1066 is the analogous issue for numeric inputs.
IMO, resolving this issue would be of significant value since other methods of manipulating the range input (e.g., mouse movement) are harder to implement in some testing environments like JSDOM.
If this is a @testing-library/user-event issue, I'd be happy to try and implement it if someone can point me in the right direction.
The text was updated successfully, but these errors were encountered:
Reproduction example
https://codesandbox.io/s/magical-hoover-80m7jv?file=/src/range.test.tsx
Prerequisites
onInput
handler (onChange
for react applications)user.keyboard('{ArrowRight}'
See codesandbox link or https://github.com/ChristopherChudzicki/range-input-arrowkeys/blob/main/src/range.test.tsx
Expected behavior
The input handler should be called.
Actual behavior
The input handler is not called.
User-event version
14.4.3
Environment
Testing Library framework:
JS framework:
Test environment:
DOM implementation:
Additional context
Per #843, I think this is an issue in
@testing-library/user-event
not JSDOM. #1066 is the analogous issue for numeric inputs.IMO, resolving this issue would be of significant value since other methods of manipulating the range input (e.g., mouse movement) are harder to implement in some testing environments like JSDOM.
If this is a
@testing-library/user-event
issue, I'd be happy to try and implement it if someone can point me in the right direction.The text was updated successfully, but these errors were encountered: