Skip to content
Snippets Groups Projects
Commit 97f410b5 authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[TASK] Prepare ImmediateActionElementTest for ES6 modules

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 is adapted to overwrite the references
in Viewport and ModuleMenu instead.

Also a timeout is added as await import('TYPO3/CMS/Backend/ModuleMenu')
does not guarantee a loading order between modules in ES6, which
causes test asserts to be executed too early.

Releases: main
Resolves: #96396
Related #96323
Change-Id: I5c213b70e43c5e1256e91ffe0d9f12f96dbb6615
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72736


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
parent 16ed4261
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment