ExternalHyperlink
button from @workday/canvas-kit-react causes @testing-library/react getByRole('link') queries to hang with v11 of Canvas Kit and happy-dom
#1593
Labels
bug
Something isn't working
Describe the bug
Discovered during investigation of Workday/canvas-kit#3032 - it looks like using
happy-dom
means that@testing-library/react
isn't able to detect the accessible role of a link button component from that library on a particular version, wherejsdom
can.To Reproduce
https://stackblitz.com/edit/canvas-kit-react-v11-starter-w7cqqu-9gfiwe?file=src%2FApp.test.tsx shows the test hangs when trying to find a role
link
when usinghappy-dom
https://stackblitz.com/edit/canvas-kit-react-v11-starter-w7cqqu-5xmrfs?file=src%2FApp.test.tsx,vite.config.ts shows
jsdom
works fineExpected behavior
The tests should pass in all cases.
Screenshots
N/A
Device:
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: