https://testing-library.com/docs/dom-testing-library/api-async/#waitfor Usually findBy* works fine instead of waitFor, but sometimes waitFor is useful when you are waiting for something other than a DTL matcher.
https://testing-library.com/docs/dom-testing-library/api-async/#waitfor
Usually findBy* works fine instead of waitFor, but sometimes waitFor is useful when you are waiting for something other than a DTL matcher.