File tree Expand file tree Collapse file tree 4 files changed +26
-2
lines changed
app/code/Magento/PageBuilder/Test/Mftf Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 68
68
<data key =" cmsPageLinkName" unique =" suffix" >cms-page-link-</data >
69
69
<data key =" value" >Good Night!</data >
70
70
</entity >
71
+ <!-- Background Color -->
72
+ <entity name =" PageBuilderBannerBackgroundColor_Empty" type =" pagebuilder_banner_background_color_property" >
73
+ <data key =" name" >Background Color</data >
74
+ <data key =" section" >background</data >
75
+ <data key =" fieldName" >background_color</data >
76
+ <data key =" value" >rgb(250, 250, 250)</data >
77
+ </entity >
71
78
<!-- Link -->
72
79
<entity name =" PageBuilderBannerLinkUrlProperty" type =" pagebuilder_banner_linkUrl_property" >
73
80
<data key =" name" >Link</data >
Original file line number Diff line number Diff line change 40
40
<data key =" fieldName" >min_height</data >
41
41
<data key =" value" >300</data >
42
42
</entity >
43
+ <!-- Background Color -->
44
+ <entity name =" PageBuilderSlideItemBackgroundColor_Empty" type =" pagebuilder_slide_item_background_color_property" >
45
+ <data key =" name" >Background Color</data >
46
+ <data key =" section" >background</data >
47
+ <data key =" fieldName" >background_color</data >
48
+ <data key =" value" >rgb(250, 250, 250)</data >
49
+ </entity >
43
50
<!-- Link -->
44
51
<entity name =" PageBuilderSlideItemLinkURL_Empty" type =" pagebuilder_slide_item_link_url_property" >
45
52
<data key =" name" >Link</data >
Original file line number Diff line number Diff line change 596
596
</actionGroup >
597
597
<executeJS function =" return window.getComputedStyle(document.evaluate(" {{BannerOnBackend.noBackgroundColor('1')}}" , document.body).iterateNext()).backgroundColor" stepKey =" grabDefaultBackgroundColor" />
598
598
<assertEquals stepKey =" assertDefaultBackgroundColor" >
599
- <expectedResult type =" string" >rgb(250, 250, 250) </expectedResult >
599
+ <expectedResult type =" string" >{{PageBuilderBannerBackgroundColor_Empty.value}} </expectedResult >
600
600
<actualResult type =" variable" >grabDefaultBackgroundColor</actualResult >
601
601
</assertEquals >
602
602
<actionGroup ref =" saveAndContinueEditCmsPage" stepKey =" saveAndContinueEditCmsPage" />
606
606
<actionGroup ref =" validateBackgroundAttributesWithNoImageOrColor" stepKey =" validateStage2" >
607
607
<argument name =" section" value =" BannerOnBackend" />
608
608
</actionGroup >
609
+ <executeJS function =" return window.getComputedStyle(document.evaluate(" {{BannerOnBackend.noBackgroundColor('1')}}" , document.body).iterateNext()).backgroundColor" stepKey =" grabDefaultBackgroundColorAfterSave" />
610
+ <assertEquals stepKey =" assertDefaultBackgroundColorAfterSave" >
611
+ <expectedResult type =" string" >{{PageBuilderBannerBackgroundColor_Empty.value}}</expectedResult >
612
+ <actualResult type =" variable" >grabDefaultBackgroundColorAfterSave</actualResult >
613
+ </assertEquals >
609
614
<actionGroup ref =" openPageBuilderEditPanel" stepKey =" openEditMenuOnStage2" >
610
615
<argument name =" contentType" value =" PageBuilderBannerContentType" />
611
616
</actionGroup >
Original file line number Diff line number Diff line change 198
198
<seeElement selector =" {{SlideOnBackend.backgroundRepeat('1', PageBuilderBackgroundRepeat_Default.styleValue)}}" stepKey =" seeBackgroundRepeatStage" />
199
199
<executeJS function =" return window.getComputedStyle(document.evaluate(" {{SlideOnBackend.noBackgroundColor('1')}}" , document.body).iterateNext()).backgroundColor" stepKey =" grabDefaultBackgroundColor" />
200
200
<assertEquals stepKey =" assertDefaultBackgroundColor" >
201
- <expectedResult type =" string" >rgb(250, 250, 250) </expectedResult >
201
+ <expectedResult type =" string" >{{PageBuilderSlideItemBackgroundColor_Empty.value}} </expectedResult >
202
202
<actualResult type =" variable" >grabDefaultBackgroundColor</actualResult >
203
203
</assertEquals >
204
204
<actionGroup ref =" saveAndContinueEditCmsPage" stepKey =" saveAndContinueEditCmsPage" />
210
210
<seeElement selector =" {{SlideOnBackend.backgroundSize('1', PageBuilderBackgroundSize_Default.value)}}" stepKey =" seeBackgroundSizeStage2" />
211
211
<seeElement selector =" {{SlideOnBackend.backgroundPosition('1', PageBuilderBackgroundPosition_Default.styleValue)}}" stepKey =" seeBackgroundPositionStage2" />
212
212
<seeElement selector =" {{SlideOnBackend.backgroundRepeat('1', PageBuilderBackgroundRepeat_Default.styleValue)}}" stepKey =" seeBackgroundRepeatStage2" />
213
+ <executeJS function =" return window.getComputedStyle(document.evaluate(" {{SlideOnBackend.noBackgroundColor('1')}}" , document.body).iterateNext()).backgroundColor" stepKey =" grabDefaultBackgroundColorAfterSave" />
214
+ <assertEquals stepKey =" assertDefaultBackgroundColorAfterSave" >
215
+ <expectedResult type =" string" >{{PageBuilderSlideItemBackgroundColor_Empty.value}}</expectedResult >
216
+ <actualResult type =" variable" >grabDefaultBackgroundColorAfterSave</actualResult >
217
+ </assertEquals >
213
218
<!-- Validate Edit Panel After Save -->
214
219
<comment userInput =" Validate Edit Panel After Save" stepKey =" commentValidateEditPanel2" />
215
220
<actionGroup ref =" openPageBuilderEditPanelSmallByIndex" stepKey =" openEditPanel" >
You can’t perform that action at this time.
0 commit comments