Skip to content

Unit Testing for Accessibility #1338

Answered by Spone
hjhart asked this question in Q&A
Apr 20, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @hjhart, do you write previews for your components? If it's the case, you can use the previews URLs to run your accessibility tests. Your tests will run faster as only the single component you want to test is rendered.

I suspect you may also want to test the interaction between components rendered on the same page. For this case, what about creating a "static" view (ie. that doesn't load data from the DB) with the relevant components, and running your tests against it?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hjhart
Comment options

@joelhawksley
Comment options

Answer selected by hjhart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants