Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ahayes91 opened this issue Nov 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ahayes91
Copy link

ahayes91 commented Nov 7, 2024

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, where jsdom 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 using happy-dom

https://stackblitz.com/edit/canvas-kit-react-v11-starter-w7cqqu-5xmrfs?file=src%2FApp.test.tsx,vite.config.ts shows jsdom works fine

Expected behavior
The tests should pass in all cases.

Screenshots
N/A

Device:
N/A

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant