Testing · Middle · Question 34 of 75

Why is getByRole slower than getByText, and what to do about it?

Explanation

In most suites the difference is negligible, and the confidence gained is worth it.

Further reading

Problem with a question

Testing · Middle · question 34

Test yourself

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

Take this quiz