-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
DOMException: Failed to execute 'insertBefore' on 'Node' #1429
Comments
Can you provide a reproduction link? |
Hi, I have the same issue caused by this recent fix: #1407 It logs the same error as Marco commented:
Same test works with happy-dom@14.8.2, then it starts failing with happy-dom@14.8.3 I didn't have time to dig more, but in my use case it craches when I try to test a Radix select rendered in a Radix dialog which uses a React portal... |
It happens also to me using the Dialog component from Radix. It seems that happens because the focus guards functionality. After some digging I have realized that it performs some radix utilities trigger
I think this test should pass:
|
Describe the bug
I'm getting this error inside radix-vue after updating the happy-dom package from
14.7.1
to14.10.1
. It seems to me that it's a change on the most recent version of happy-dom package that is breaking my unit tests.Everything works as expected on the browser. How should I solve this? Any ideas?
Screenshots
Error text:
Device:
The text was updated successfully, but these errors were encountered: