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.
In my experience with medium side components it would take seconds to find the element vs a few milliseconds for getByTestId.
No comments yet.