Testing · Senior · Question 72 of 75

What is the main risk of testing through data-testid only?

Explanation

Role and label queries double as accessibility checks; test ids don't.

Further reading

Problem with a question

Testing · Senior · question 72

Test yourself

Take the Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz