I want to change the value of material UI TextField in react testing library. I already set up the data-testid. Then using getByTestId i picked up the
TextField
getByTestId
You can use fireEvent.change on an element that supports that event like . In your case, I'm not sure what you're selecting. You can try to debug(userInput) to see what it returns.
fireEvent.change
debug(userInput)