You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These failures are because we added a new wrapping div around the text inside of buttons in v6, and the RTL byText query is now returning that wrapper rather than the button element itself, which is where those attributes live.
I would suggest using byRole queries instead and passing a name option searching for the text value you're currently passing into the byText query, as it will return the top level button element. Also FWIW the RTL team does suggest prioritizing the use of byRole queries over byText when possible.
Please describe the issue
4 tests cannot find the Button's
disabled
attribute. This test worked with v5, but no longer works with v6.Are there visuals for this issue? Please provide screenshots
Error 1
Error 2
Error 3
Error 4
Could you point to a branch or draft PR where this issue exists? Please provide a link to the code
Error 1
Error 2
Error 3
Error 4
The text was updated successfully, but these errors were encountered: