-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Testing Playground Fails to find role="listitem" #338
Comments
🤦♀️ It's |
Thanks for reporting! The error/notice is because there are multiple |
I think what complicates things too is that (at least locally) list items don't have a The notice makes sense, but it would be nice to get a better error message when the query doesn't work, like in this case. It looks like nothing happens (unless i'm just missing it) |
Yeah, that makes sense. Would a message like this have been better?
Do you have any ideas/suggestions? |
Yeah, a message like that would have been more helpful! |
Bug Report 🐛
screen. getByRole('listitem')
does nothing. It will correctly point out when clicking on the element that you should usegetByRole('listitem')
but then nothing happens when you do.To Reproduce ✔️
https://testing-playground.com/gist/8e1c0a696406024c7ca3948328d11643/8926981ba1d5840186bdc0db0d039a90d202bd18
https://testing-playground.com/gist/8473f395e8e4cff53ad059184d268db0/4ef2f72a3abc6ee13f07b6f4887744c3053b4fd5
Click on an
li
element and see how the query displays// sorry, I failed to provide something useful
Expected behavior 🤔
Li elements would be found, just like
getByRole('list')
worksYour Environment 💻
The text was updated successfully, but these errors were encountered: