i’ve made a small repo to demontstrate my issue: https://github.com/msawatzky75/user-event-input-test
i have a few different scenarios here:
- html button
- div with click handler
- checkbox with data-binding that is watched
- input that triggers every time its typed into
each of these triggers a fetch request that is handled by msw
. i have also setup 2 different DOM environments to run these tests in: jsdom
and happy-dom
.
only the tests that interact with input elements (checkbox and the text input) fail and the results are consistant across DOM environments.
What is the issue here? is it a bug with @testing-library/user-event
? if not, how could one go about fixing this?