In tests, activate menus by JS instead of click