how to simulate mouse event second button?
Use the onContextMenu event handler.
Or you can pass the button value using simulates second argument:
wrapper.simulate('click', { button: 1 })
I'm going to close this issue as it reports nothing wrong with enzyme itself. Feel free to keep the conversation going however!
Just for reference, right mouse button triggers 'contextmenu' event, so this is also can be simulated as:
wrapper.simulate('contextmenu');
Most helpful comment
Just for reference, right mouse button triggers 'contextmenu' event, so this is also can be simulated as:
wrapper.simulate('contextmenu');