#96396Prepare ImmediateActionElementTest for ES6 modules
Description
In ES6 mode Viewport.Topbar and ModuleMenu.App properties
cannot be overwritten (in order to be substituted with a call spy),
as they reference other JavaScript modules.
The properties of ES6 models are readonly (“frozen”) and can
therefore not be overwritten in a test setup.
Therefore the test should adapted to overwrite the references
in Viewport and ModuleMenu instead.