Add global objects that react tooltip uses

[MAILPOET-5482]
This commit is contained in:
Pavel Dohnal
2024-06-24 10:45:37 +02:00
committed by Veljko V
parent cbb3acbad2
commit d2b5932ba7

View File

@@ -34,6 +34,10 @@ global.window.wp = global.window.wp || {
getLocaleData: () => {},
},
};
global.MutationObserver = global.window.MutationObserver;
global.CustomEvent = global.window.CustomEvent;
global.HTMLElement = global.window.HTMLElement;
global.getComputedStyle = global.window.getComputedStyle;
testHelpers.loadScript(
'tests/javascript-newsletter-editor/testBundles/vendor.js',