Automated tests throw "TypeError: highlightItem.scrollIntoView is not a function" #2616
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ... (check one with "x")
Codesandbox Case (Bug Reports)
https://codesandbox.io/s/treeselect-toxz7?file=/src/index.test.js
Current behavior
Running tests with jest and @testing-library/react trigger this error for components like Dropdown, MultiSelect, TabView and TreeSelect
This is likely related to jsdom/jsdom#1695 and there is a workaround explained here https://stackoverflow.com/a/53294906/1205028
Expected behavior
Error should not be thrown and workarounds should not be needed.
Minimal reproduction of the problem with instructions
Open the sandbox link, click the tests, then click the console where the error is shown.
7.2.0
The text was updated successfully, but these errors were encountered: