Window.parent undefined in iframe causes cypress tests to fail

It took me some time to realize why cypress could not work with elements inside the theia iframe.
It so happens that, probably for security reasons, parent, top, and frameElement are deleted from the iframe window at

Could you let me know if there would be some provisioned toggle that I could use to prevent that from happening or am I just left with hacking the code ?