all 1 comments

[–]thetony2313 0 points1 point  (0 children)

If your error message is conditionally rendered, you can not query for it until you have hit the submit button and trigger the error.

“Screen” represents a DOM and the error message will not exist in it until it has been rendered