Tim Deschryver 6/1/2020

Making sure you're using the correct query

Read Original

This technical article discusses the *ByRole query in the Testing Library (including Angular Testing Library v9), emphasizing its benefits for accessibility and test robustness. It covers how *ByRole solves issues like querying broken text elements and finding specific elements among multiple matches, providing code examples and guidance on selecting the best query for maintainable tests.

Making sure you're using the correct query

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week