Testing · Middle · Question 5 of 75

What is wrong with waiting like this?

await waitFor(() => {});

Explanation

Always wait for something observable: an element, a text, a call.

Further reading

Problem with a question

Testing · Middle · question 5

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