How to get HTML elements in react tests with Enzyme? I am able to find wrappers. But I want HTML element. Becuase block of my code which needs to be covered has offsetParent check on HTML element which is not getting covered. Below is the sample.
it('add class test', async () => {
const wrapper = mount((
<div class='ag-cell'>
<div class='ag-react-conatiner'></div>
<span anum={3} abool={false} />
<span anum="3" abool="false" />
</div>
));
const x = wrapper.find('.ag-react-conatiner').offsetParent;
console.log(wrapper.find('.ag-react-conatiner').offsetParent);
}
I am able to get wrapper.find('.ag-react-conatiner'). How i can get offsetParent of it?