test(infra): Add createMouseEvent helper function.
test(infra): Add createMouseEvent helper function.

PiperOrigin-RevId: 314174772

material-components/material-components-web,material-components/material-components-web,material-components/material-components-web