Skip to content

Commit 6283a65

Browse files
committed
MC-23058: Template strict mode is not set for unsaved template previews
1 parent ca2fda6 commit 6283a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Newsletter/Test/Mftf/ActionGroup/AdminNewsletterTemplateActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<click selector="{{BasicFieldNewsletterSection.preview}}" stepKey="clickPreview"/>
3636
<switchToNextTab stepKey="switchToPreviewTab"/>
3737
<waitForElementVisible selector="{{BasicFieldNewsletterSection.previewIframe}}" stepKey="waitForIframeVisible"/>
38-
<executeJS function="document.getElementById('preview_iframe').sandbox.add('allow-scripts')" stepKey="addSandboxValue"/>
38+
<executeJS function="Array.from(document.getElementById('preview_iframe').sandbox.values()).map(document.getElementById('preview_iframe').sandbox.remove)" stepKey="addSandboxValue"/>
3939
<switchToIFrame userInput="preview_iframe" stepKey="switchToIframe"/>
4040
<waitForPageLoad stepKey="waitForPreviewIframeLoaded"/>
4141
</actionGroup>

0 commit comments

Comments
 (0)