-
Notifications
You must be signed in to change notification settings - Fork 467
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
When using an invalid selector, the error isn't processed properly by waitFor #1259
Comments
The same thing happens with the latest versions: I updated the repository. |
I believe the problem happens in dom-testing-library/src/wait-for.js Lines 27 to 31 in 336152b
The message property of a DOMException can't be 'set'. Maybe we should use defineProperty instead? |
🎉 This issue has been resolved in version 9.3.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 10.0.0-alpha.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 10.0.0-alpha.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@testing-library/dom
version: I think it is 8.20.1 (used by @testing-library/react 13.4.0)Relevant code or config:
The selector is incorrect and should be:
What you did:
What happened:
Reproduction:
I couldn't reproduce in codesandbox but here is an example:
https://github.com/julienw/bug-testing-library
Problem description:
We don't have a good error, instead we have a timeout.
The actual error is in a console error message above, which isn't ideal.
I haven't tried with newer versions of jsdom and jest yet.
Suggested solution:
I'm not sure to be honest...
The text was updated successfully, but these errors were encountered: