Skip to content

Commit effacba

Browse files
committed
ACP2E-3326: addressed MHI failure: "File has inline JS usage without 'x-magento-init' or 'x-magento-template' attribute. (inlineJs)"
1 parent 6581c8f commit effacba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/Test/Unit/Model/Stage/HtmlFilterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function setUp(): void
3333
public function testFilterHtml()
3434
{
3535
//test for script tag
36-
$inputHtml = '<div><script>alert("test")</script><p>Content</p></div>';
36+
$inputHtml = '<div><script type="text/x-magento-init">alert("test")</script><p>Content</p></div>';
3737
$expectedOutput = '<div><p>Content</p></div>';
3838

3939
$result = $this->htmlFilter->filterHtml($inputHtml);

0 commit comments

Comments
 (0)