Project

General

Profile

Actions

Task #96396

closed

Epic #96323: TYPO3 Backend: ES6 Module (ESM) support

Prepare ImmediateActionElementTest for ES6 modules

Added by Benjamin Franzke over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Category:
Tests
Target version:
Start date:
2021-12-20
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions

Also available in: Atom PDF