-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
getByRole does not work in some cases #1122
Comments
I also have this issue when using different component libraries. The issue seems to be that HappyDOM may not be looking at the |
…k-in-some-cases fix: [#1122] Fixes problem related to invalid pseudo query selectors …
Thank you for reporting @roman-gula and @DavidRNogueira! 🙂 A fix has been released: The reason for why it failed to match the element is because Testing Library checks if the element is visible by using |
Describe the bug
Hi! I use Vite with MUI and noticed that with
happy-dom
my test fails. Withjsdom
it works.I can't find what is the problem. Please see code below
To Reproduce
Example on Stackblitz
The text was updated successfully, but these errors were encountered: