I have an element with an onClick
handler which may be disabled by adding pointer-events: none
to parent (parent disables children click).
Now I want to test that my child is not clickable, how can I do this?
Using userEvent.click
throws error:
Error: Unable to perform pointer interaction as the element has `pointer-events: none`:
But this is exactly what I am trying to test...