Hacker News new | ask | show | jobs
by emptysea 1320 days 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.