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
Hello 馃憢 I鈥檓 new to testing-library, but am really enjoying it so far! I鈥檓 currently running into an issue when using the changeInit option on userEvent.upload.
I wrote a test using the changeInit option on userEvent.upload and expected that the change event would have the updated cancelable value (similar to clickInit with shiftKey).
What happened:
The change event was not updated like I expected it to be and the test failed.
Hello 馃憢 I鈥檓 new to
testing-library
, but am really enjoying it so far! I鈥檓 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: