How to test the antd Dropdown with Enzyme
This is how I achieved it:
// Let's assume you already have a ShallowWrapper with some Dropdown's parent.
const dropdown = wrapper.find(Dropdown);
const submenu = shallow(<div>{dropdown.prop('overlay')}</div>);
const submenuItems = submenu.find(Menu.Item);
submenuItems.forEach(item => item.simulate('click'));
To find the Menu component:
const menuInstance = shallow(component.find('Dropdown').first().props().overlay)