Fix Element not defined in tests in tinymce

[MAILPOET-3673]
This commit is contained in:
Rostislav Wolny
2021-07-01 16:21:46 +02:00
committed by Jan Lysý
parent b8f1124ef5
commit 9a24aa07f4

View File

@@ -36,6 +36,8 @@ global.window.jQuery = jQuery;
testHelpers.loadScript('tests/javascript_newsletter_editor/testBundles/vendor.js', global.window);
const Handlebars = global.window.Handlebars;
global.Handlebars = global.window.Handlebars;
// Fix global access element. It is used in tinymce
global.Element = global.window.Element;
// Stub out interact.js
global.interact = function () {