How to reach to a popover from Enzyme in full DOM (mount) rendering test

  • My React/Meteor project use Enzyme for unit testing. In a full DOM rendering test which I mount() the top-level App component, it is rendered correctly. However, when I try to navigate, using Enzyme’s simulate(‘click’), down to a popover. I realize that the popover is created elsewhere, not in the same DOM, its shadow-dom, I guess. However, I need to click on a list-item inside the popover.

    Is it possible to reach to the popover using Enzyme or web api?


Log in to reply