-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐞] userEvent
from createDOM
(qwik/testing) util doesn't trigger on input type="checkbox"
#5221
Comments
userEvent
from createDOM
from qwik/testing util doesn't trigger on input type="checkbox"userEvent
from createDOM
(qwik/testing) util doesn't trigger on input type="checkbox"
So when I run your test the generated DOM is this: <input type="checkbox" class="..." /> There is no Normally where you have In your case, the SolutionI am not sure what the right solution is so I would like to start a discussion. Here are the potential outcomes.
Would love to hear your thoughts. |
if the behaviour of |
it seems they had a similar discussion in the |
I see, so your suggestion is that we should incorporate https://github.com/testing-library/user-event into Any chance you could take that on as a PR? |
Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
I'm trying to trigger a click on a checkbox in a vitest using
userEvent
doesn't change thechecked
value of a checkboxreplacing
userEvent(selector, 'click')
withscreen.querySelector(selector).click()
works as expectedReproduction
https://github.com/riencoertjens/qwik-vitest/blob/main/src/components/example/checkbox.test.tsx#L22
Steps to reproduce
npm install
+npm run test.unit
on reproduction repo shows the passing and failing testsSystem Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: