-
Notifications
You must be signed in to change notification settings - Fork 24
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
clear* methods don't allow for sufficient customization #53
Comments
Having the same issue. |
Thanks for reporting this! Would either of you be able to add this functionality in a PR? |
What is the desired functionality? |
Unfortunately, I don't think this can be achieved with 0 config. For instance, it could look like this: await selectEvent.clearFirst(getByLabelText("Food"), { clearElementSelector: "div[title='clear options']" }); |
clear*
methods assume the clearing icon is an svg. That's not always the case with customized react-select components. Could we improve the API ofclear*
methods so that such custom select components can be tested with them? eg.select
method takes a config object.The text was updated successfully, but these errors were encountered: