You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is how my components looks like :
when hovered on DropDown the menu will appear and when clicked on any of the item the items gets selected and state variable concept gets updated. how to test this DropDown ? iam not able to access the Menu to simulate the 'click' on the menu
component = mount(<comp />) const dropdown = component.find(Dropdown) // this i am able to find const menuInstance = component.find(Menu) // this it is returning reactwrapper {length:0}
how to simulate the onclick on menu
i tried console logging the dropdown.props().overlay i got:
How does Dropdown render the Menu? If it renders it outside of the render tree - like, say it appends to the DOM, or uses the modern Portals API - it's not necessarily something enzyme can handle.
Have you filed an issue with antd to see if they have any thoughts?
I’m going to close this then; if it’s using official Portals, then it should just work in React 16, but otherwise, see #252 for why it’s not something enzyme can address.
Please post the link here when you do file the issue!
this is how my components looks like :
when
hovered
on DropDown the menu will appear and when clicked on any of the item the items gets selected and state variable concept gets updated. how to test this DropDown ? iam not able to access the Menu to simulate the 'click' on the menucomponent = mount(<comp />) const dropdown = component.find(Dropdown) // this i am able to find const menuInstance = component.find(Menu) // this it is returning reactwrapper {length:0}
how to simulate the onclick on menu
i tried console logging the dropdown.props().overlay i got:
The text was updated successfully, but these errors were encountered: