-
Notifications
You must be signed in to change notification settings - Fork 249
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
Selecting multiple options using selectOptions
is not working
#935
Comments
Thanks for the report.
The API works on an intrinsic Someone needs to investigate what exactly throws off the implementation by |
@ph-fritsche Thanks for the reply. Yes it is working on the
Let me give you some hints about the So, my assumption is that in Here is the modified intrinsic |
🎉 This issue has been resolved in version 14.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@all-contributors add @Thanga-Ganapathy bug |
I've put up a pull request to add @Thanga-Ganapathy! 🎉 |
Reproduction example
https://codesandbox.io/s/pedantic-robinson-cchucu?file=/src/App.js
Prerequisites
Form
component from "@open-tech-world/react-form".SelectField
from "@open-tech-world/react-form".options
to the select and addmultiple
attribute.userEvent.selectOptions
.submit
button.Form
onSubmit
handler.Expected behavior
The
userEvent.selectOptions
should select multiple options using the provided string array of the values parameter.Actual behavior
The
userEvent.selectOptions
selects only the last option from the given string array of the values parameter, even if themultiple
attribute is set.User-event version
14.1.1
Environment
Testing Library framework:
@testing-library/[email protected]
JS framework:
[email protected]
Test environment:
[email protected]
DOM implementation:
@testing-library/[email protected]
Additional context
No response
The text was updated successfully, but these errors were encountered: