Open jpzwarte opened 1 year ago
Created a PR for this in chai-dom
: https://github.com/nathanboktae/chai-dom/pull/64
Yay for small victories. The PR in chai-dom
got merged! Do we have to wait for a new release of chai-dom
or @esm-bundle/chai
? Not sure what the process is.
So the existing
displayed
property of chai-dom doesn't work when the element is inside the Shadow DOM.The workaround for that is to use
getRootNode
to check if the element is inside thedocument
:What is easier? Should I try and get this fixed upstream and then update the chai-dom version here? Or patch the
displayed
property here?