material-ui's select component uses the mouseDown event to trigger the popover menu to appear. If you use fireEvent.mouseDown
that should trigger the popover and then you can click your selection within the listbox that appears. see example below.
import React from "react"
import { render, fireEvent, within } from "react-testing-library";
…
Top comments (0)