File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
app/code/Magento/Newsletter/Test/Mftf/ActionGroup Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 35
35
<click selector =" {{BasicFieldNewsletterSection.preview}}" stepKey =" clickPreview" />
36
36
<switchToNextTab stepKey =" switchToPreviewTab" />
37
37
<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" />
39
39
<switchToIFrame userInput =" preview_iframe" stepKey =" switchToIframe" />
40
40
<waitForPageLoad stepKey =" waitForPreviewIframeLoaded" />
41
41
</actionGroup >
You can’t perform that action at this time.
0 commit comments