Why toBeVisible
doesn't work with getByRole
?
#622
Replies: 1 comment 7 replies
-
The fact that it works or not is most likely unrelated to whether you used The documentation only using Lastly, if you can find a situation where using a different query function changes the outcome of |
Beta Was this translation helpful? Give feedback.
-
Hi guys! Recently I needed to use the
toBeVisible
assertion with an element that I got usinggetByRole
.It doesn't work. I read the docs and all the examples are using
ByText
queries.Are there any reasons for that?
Beta Was this translation helpful? Give feedback.
All reactions