Tabs keyboard arrows accessibility test on @testing-library/* #1584
Replies: 1 comment 7 replies
-
Hi @kimdgutierrez, You shouldn't really have to re-test the library, that's a bit like re-testing that React itself works. This is likely some timing issues in your tests or some discrepancies around focus management in jsdom vs. a real browser. Hope that helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, Radix! First of all great library and great work what you have done on this project!
We are currently trying-out the @radix-ui/react-tabs and we would like to test the basic accessibility navigation as sort of fail-safe. However, it seems that tabs is not responding to keyboard arrows, but it is responding on tabs and locking on Tab list (first-button), just unable to switch the focus between buttons.
I've been playing on this sandbox to recreate the problem, but this one is producing a bit different behaviour, on first TAB it locks on the role="tablist" instead of the first role="tab", this makes it tricky to give you the best picture of the first problem were having. But yeah, there is no really special requirement we just want to test a11y described here.
Reading on existing issues and looking at the tests you have, it could simply be that the library is not there yet in terms of rigour testing? That being said we wonder about our (radix) roadmaps especially on testing and libraries to support as we see that we are leaning more towards cypress and that @testing-library/* doesn't play well yet on some packages, can you please enlighten us on this?
Thank you and good job on this package!
Beta Was this translation helpful? Give feedback.
All reactions