Skip to content

Commit 3223f3b

Browse files
committed
PB-370: Introduce upgrade mechanism for Page Builder content
- fix static issues
1 parent ca7ca38 commit 3223f3b

File tree

2 files changed

+3
-2
lines changed
  • app/code/Magento/PageBuilder/view/base/web/js/content-type/banner/appearance/default
  • dev/tests/static/testsuite/Magento/Test/Integrity/Xml

2 files changed

+3
-2
lines changed

app/code/Magento/PageBuilder/view/base/web/js/content-type/banner/appearance/default/widget.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ define([
99
'use strict';
1010

1111
return function (config, element) {
12+
var videoElement = element[0].querySelector('[data-background-type=video]');
13+
1214
showOnHover(config);
1315

14-
var videoElement = element[0].querySelector('[data-background-type=video]');
1516
if (videoElement) {
1617
videoBackground(config, videoElement);
1718
}

dev/tests/static/testsuite/Magento/Test/Integrity/Xml/ExtendsBaseFormTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private function getXmlFiles(): array
6363
$overrideFiles = [
6464
'pagebuilder_base_form.xml' => '',
6565
'pagebuilder_map_location_form.xml' => '',
66-
'pagebuilder_banner_form.xml' => 'pagebuilder_base_form_with_background_attributes',
66+
'pagebuilder_banner_form.xml' => 'pagebuilder_base_form_with_background_video',
6767
'pagebuilder_column_form.xml' => 'pagebuilder_base_form_with_background_attributes',
6868
'pagebuilder_slide_form.xml' => 'pagebuilder_base_form_with_background_attributes',
6969
'pagebuilder_tab_item_form.xml' => 'pagebuilder_base_form_with_background_attributes',

0 commit comments

Comments
 (0)