davidtheclark / react-aria-tabpanel

A fully accessible, extravagantly flexible, React-powered Tab Panel component

Home Page:http://davidtheclark.github.io/react-aria-tabpanel/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug with enzyme .simulate(click) on <div>

eguyot opened this issue · comments

Hi. I'm having trouble making my enzyme test work on that div that is inside the li.
It doesn't want to simulate a click on a div apparently.
How could I modify the code to make that div a a ?
Is there some parameters we can pass to modify the markup a little ?

Hi @eguyot. This isn't a bug with the library, but a limitation of Enzyme's simulate. I'm open to PRs allowing different elements — so I think this is kind of a duplicate of #21.