Skip to content

Commit 87503aa

Browse files
PB-317: Saving PageBuilder Content w/ Background Images on Edge Will Results in No Images on Storefront
- fix test
1 parent ea8a450 commit 87503aa

File tree

1 file changed

+16
-4
lines changed
  • dev/tests/integration/testsuite/Magento/PageBuilder/Model/Filter

1 file changed

+16
-4
lines changed

dev/tests/integration/testsuite/Magento/PageBuilder/Model/Filter/TemplateTest.php

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
declare(strict_types=1);
77

8-
namespace Magento\Pagebuilder\Model\Filter;
8+
namespace Magento\PageBuilder\Model\Filter;
99

1010
use Magento\TestFramework\ObjectManager;
1111

@@ -41,19 +41,31 @@ public function getFilterForDataProvider() : array
4141
{
4242
$template = <<<TEMPLATE
4343
<div data-content-type="row" data-appearance="contained" data-element="main">
44-
<div data-enable-parallax="0" data-parallax-speed="0.5" data-background-images="{\&quot;desktop_image\&quot;:\&quot;{{media url=jb-decorating.jpg}}\&quot;}" data-element="inner" style="justify-content: flex-start; display: flex; flex-direction: column; background-position: center center; background-size: cover; background-repeat: repeat; background-attachment: scroll; border-style: none; border-width: 1px; border-radius: 0px; min-height: 350px; margin: 0px 0px 10px; padding: 10px;"></div>
44+
<div data-enable-parallax="0" data-parallax-speed="0.5"
45+
data-background-images="{\&quot;desktop_image\&quot;:\&quot;{{media url=jb-decorating.jpg}}\&quot;}"
46+
data-element="inner" style="justify-content: flex-start; display: flex; flex-direction: column;
47+
background-position: center center; background-size: cover; background-repeat: repeat;
48+
background-attachment: scroll; border-style: none; border-width: 1px; border-radius: 0px; min-height: 350px;
49+
margin: 0px 0px 10px; padding: 10px;"></div>
4550
</div>
4651
TEMPLATE;
4752

4853
$template2 = <<<TEMPLATE
4954
<div data-content-type="row" data-element="main" data-appearance="contained">
50-
<div style="background-position: center; border-width: 1px; border-style: none; margin: 0px 0px 10px; padding: 10px; border-radius: 0px; background-repeat: repeat; background-attachment: scroll; display: flex; min-height: 350px; background-size: cover; flex-direction: column; justify-content: flex-start;" data-element="inner" data-background-images='{\"desktop_image\":\"{{media url=jb-decorating.jpg}}\"}' data-parallax-speed="0.5" data-enable-parallax="0"></div>
55+
<div style="background-position: center; border-width: 1px; border-style: none; margin: 0px 0px 10px;
56+
padding: 10px; border-radius: 0px; background-repeat: repeat; background-attachment: scroll; display: flex;
57+
min-height: 350px; background-size: cover; flex-direction: column; justify-content: flex-start;"
58+
data-element="inner" data-background-images='{\"desktop_image\":\"{{media url=jb-decorating.jpg}}\"}'
59+
data-parallax-speed="0.5" data-enable-parallax="0"></div>
5160
</div>
5261
TEMPLATE;
5362

5463
$template3 = <<<TEMPLATE
5564
<div data-content-type="row" data-element="main" data-appearance="contained">
56-
<div style="background-position: center; border-width: 1px; border-style: none; margin: 0px 0px 10px; padding: 10px; border-radius: 0px; background-repeat: repeat; background-attachment: scroll; display: flex; min-height: 350px; background-size: cover; flex-direction: column; justify-content: flex-start;" data-element="inner" data-background-images='{}' data-parallax-speed="0.5" data-enable-parallax="0"></div>
65+
<div style="background-position: center; border-width: 1px; border-style: none; margin: 0px 0px 10px;
66+
padding: 10px; border-radius: 0px; background-repeat: repeat; background-attachment: scroll; display: flex;
67+
min-height: 350px; background-size: cover; flex-direction: column; justify-content: flex-start;"
68+
data-element="inner" data-background-images='{}' data-parallax-speed="0.5" data-enable-parallax="0"></div>
5769
</div>
5870
TEMPLATE;
5971

0 commit comments

Comments
 (0)