til

Avoid waitFor using findBy* queries

javascriptreact-testing-library

Whenever you have to do a getBy* query to look for an element that was added to the DOM in response to an async operation like a fetch request, you can directly use findBy* queries.