Listen " Tests for accessible error messages"
Episode Synopsis
Hi Kent!My name is Jan. I'd like to ask you: How do you write tests for accessible error messages with testing library?By accessible error messages, I mean, suppose you have a form with an input. You have a p tag which renders the error, if there is an error. And that p tag has an id.And now you pass this p tags id to the input as a value for the aria-describedby property.So far, I'm using byText to check for the existence of that error in my tests, but I was wondering whether there is a better query for that?Thank you!Custom Queries Tests for accessible error messages
More episodes of the podcast The Call Kent Podcast
From AI Automation to Full-Stack Engineering
06/01/2026
Conference Workshop Advice
01/12/2025
Getting a Developer Job in the AI chaos
25/11/2025
Web Framework Choice
26/09/2025
Suggestion on Career Advice
24/09/2025
Request for oAuth implementation
15/09/2025
What should I learn next?
22/05/2025
ZARZA We are Zarza, the prestigious firm behind major projects in information technology.