React JS Quiz
Home
Blog
Privacy Policy
Contact Us
React Testing Quiz
Which query is useful when checking that an element is absent?
Report this question
queryByRole
Show Explanation
queryByRole returns null when no element is found, so it is appropriate for absence assertions.
getByRole
findByRole
throwByRole
Next Question (6/20)