Just wondering if anyone has had any luck using React Testing Library to test when a checkbox is in an indeterminate state? As far as I can tell they added a toBePartiallyChecked() method for asserting this but it doesn't seem to work. I can't see anything in the dom that would indicate the checkbox is in the indeterminate state so i'm not sure how RTL would know?
#Testing checkbox indeterminate state
1 messages · Page 1 of 1 (latest)
It looks like the library doesn't set indeterminate state for checkbox input, but just changes the icon, so you can set it manually on your side checkboxInput.indeterminate = true
But it would be nice to add it on the library side I guess