user-event icon indicating copy to clipboard operation
user-event copied to clipboard

userEvent.click does not work on Material Table

Open kkateli opened this issue 6 years ago • 2 comments

When I try to use userEvent.click to simulate click event on Material Table(https://github.com/mbrn/material-table), it gives me an error of "document.createRange is not a function". Please help.

kkateli avatar Mar 20 '20 01:03 kkateli

Hi @kkateli,

Could you please make a minimal reproduction? Once we have something then we can re-open this issue :) Thanks!

kentcdodds avatar Jun 08 '20 18:06 kentcdodds

This should fix the issue assuming you're not on Jest 26 or over: https://github.com/mui-org/material-ui/issues/15726#issuecomment-493124813

ogenodisho avatar Jun 29 '20 00:06 ogenodisho