3 ms·
One caveat with testing library’s getByRole function is that it’s really really slow. In my experience with medium side components it would take seconds to fin
by emptysea 4y ago
One caveat with testing library’s getByRole function is that it’s really really slow.
In my experience with medium side components it would take seconds to find the element vs a few milliseconds for getByTestId.