Not sure how to acess the react-scrollspy-ez element on unit test
So I am using the React scrollspy ez to display a table of content. (https://www.npmjs.com/package/react-scrollspy-ez)
I am not able to use the findByText or getElementById, etc to get the each subheader of Scrollspy, but I want to get it so that I could perform fire a click event for the sub header on unit test file. But I have having trouble to access the Scrollspy element.
return (
<div ref={itemRef}>
<Scrollspy
ids = {idsArray}
containerElements ={<aside/}
itemElement = {<a />}
>
</div>
)
Could someone share some insights on this? Thank you!