I'm using HTML5's validation feature for the <input> tag in React JS, in which you specify a regex pattern like so:
<input pattern="[a-zA-Z]+" />
When this pattern doesn't match the input value, an error dialogue box pops up.
Is there a way to detect or search for this error dialogue box in React Testing Library? Or is it possible to detect that , for a given input value, whether the pattern matches or not?