-
-
Notifications
You must be signed in to change notification settings - Fork 200
fix: for react-testing-library to find dialog by findByRole
with labe…
#290
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
fix: for react-testing-library to find dialog by findByRole
with labe…
#290
Conversation
…lName as priority in rules on top of findByLabelText
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request introduces 1 alert when merging 963e7a0 into 061bd82 - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #290 +/- ##
=======================================
Coverage 98.05% 98.05%
=======================================
Files 6 6
Lines 154 154
Branches 46 46
=======================================
Hits 151 151
Misses 2 2
Partials 1 1
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
@zombieJ By this PR we will still be able to query modal by role |
@zombieJ can you please check this breaking change? |
@hedaukartik Shouldn't you be removing the |
@hedaukartik which screen readers did you test this in? |
Thank you for that information @JeffreyATW. I’ll back you up and ask Zombie to reopen the issue this is attached to. btw, since it seems unlikely that the maintainers will let us bring RTL into this, can you add a unit test that emulated the get by role (with name) option? That way we can make sure that the regression (that this PR fixes) does not happen again? I’m not sure what that would look like but I imagine it would be “find the label by ID of the dialog and make sure that it’s the ID of the title.” |
Yes. It seems unnecessary. Removed it now. Thanks for explaining this issue in detail @JeffreyATW |
@zombieJ please check |
|
…lName as priority in rules on top of
findByLabelText