'Material UI Select covers the page which makes selecting in Jest impossible

I have a jest test where I am trying to select a value from a MUI Select list. Once you trigger the MUI select, a 'modal' pops up covering all other elements. I cannot find a way to 'click outside' the dom to close this 'modal'.

MUI Docs



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source