Modern user-event APIs are often async. Awaiting them helps ensure the interaction has completed before assertions run.
Question 12 of 20 in React Testing Quiz