Hey! I’ve been down this rabbit hole before. Headless UI jsdom can be tricky, especially with dynamic components.
One thing to check is whether your components are properly wrapped in a `Provider` or context. Sometimes jsdom doesn’t pick up on those dependencies, and it breaks the interactions.
Also, if you’re not already using it, `react-testing-library` is a lifesaver for this kind of stuff. It’s way more intuitive than trying to wrestle with jsdom directly.
One thing to check is whether your components are properly wrapped in a `Provider` or context. Sometimes jsdom doesn’t pick up on those dependencies, and it breaks the interactions.
Also, if you’re not already using it, `react-testing-library` is a lifesaver for this kind of stuff. It’s way more intuitive than trying to wrestle with jsdom directly.
