You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I went down the rabbit hole on this and will add more info here later, but I think we are mostly not doing anything wrong, and basically jsdom is very slow sometimes. Can't repro the issue in browser.
The text was updated successfully, but these errors were encountered:
Justin and I did some profiling and figured out it seemed to come down to querying the DOM by role being very slow. Turns out there is a dom-testing-library PR in progress that claims to speed it up by 2 orders of magnitude, but it hasn't been touched in two weeks. It does seem good, though, and it's nearly approved, so maybe we can wait until this drops to worry about it.
This is more like our real problem: when getByRole takes too long, it takes longer than the waitFor loop interval and so the queue just fills up with a ton of getByRoles.
I went down the rabbit hole on this and will add more info here later, but I think we are mostly not doing anything wrong, and basically
jsdom
is very slow sometimes. Can't repro the issue in browser.The text was updated successfully, but these errors were encountered: