-
Notifications
You must be signed in to change notification settings - Fork 253
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.upload changeInit
option does not update the change event
#667
Comments
2 tasks
Thanks a lot for the report ❤️ |
@all-contributors add @sydneyjodon-wk bug |
I've put up a pull request to add @sydneyjodon-wk! 🎉 |
🎉 This issue has been resolved in version 13.1.7 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@ph-fritsche Thank you for fixing that so quickly! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello 👋 I’m new to
testing-library
, but am really enjoying it so far! I’m currently running into an issue when using thechangeInit
option onuserEvent.upload
.@testing-library/user-event
version: 13.1.5@testing-library/jest-dom
version: 5.11.9@testing-library/react
version: 11.2.5Relevant code or config
What I did:
I wrote a test using the
changeInit
option onuserEvent.upload
and expected that the change event would have the updatedcancelable
value (similar toclickInit
withshiftKey
).What happened:
The change event was not updated like I expected it to be and the test failed.
Test results:
Reproduction repository:
Sandbox link
Suggested solution:
I think the issue might have to do with this line. Maybe it could be something like
...init?.changeInit
instead?The text was updated successfully, but these errors were encountered: