|
|
|
|
|
by phatskat
43 days ago
|
|
There is also Testing Library, which I’ve mostly seen and used for unit tests (vitest) and component tests (Storybook), that practically forces you into setting things up in an accessible way. The methods for finding elements are along the lines of “find by ARIA role” or “get by label” - in fact, querying the DOM with selectors is afaik either not a part of the library or very difficult to do because their focus is ensuring your app is actually accessible as part of your testing strategy. |
|