File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
app/code/Magento/PageBuilder/Test/Mftf Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 775
775
<actualResult type =" variable" >expectedContentBlockHeightWithPadding</actualResult >
776
776
</assertEquals >
777
777
</actionGroup >
778
+ <actionGroup name =" validateContentBlockHeightOnStageFromInteger" >
779
+ <arguments >
780
+ <argument name =" contentBlock" defaultValue =" " />
781
+ <argument name =" index" defaultValue =" 1" type =" string" />
782
+ <argument name =" expectedHeight" defaultValue =" 1" type =" string" />
783
+ </arguments >
784
+ <executeJS function =" {{PageBuilderActionsSection.computedHeightOnStage(contentBlock.role,index)}}" stepKey =" actualStageContentBlockHeight" />
785
+ <executeJS function =" return Math.round({{expectedHeight}})" stepKey =" expectedContentBlockHeight" />
786
+ <assertEquals stepKey =" assertHeightOnStageMatchesExpected" >
787
+ <expectedResult type =" variable" >actualStageContentBlockHeight</expectedResult >
788
+ <actualResult type =" variable" >expectedContentBlockHeight</actualResult >
789
+ </assertEquals >
790
+ </actionGroup >
778
791
<actionGroup name =" validateContentBlockHeightOnStageWithoutPadding" >
779
792
<arguments >
780
793
<argument name =" contentBlock" defaultValue =" " />
Original file line number Diff line number Diff line change 149
149
</actionGroup >
150
150
<actionGroup ref =" saveEditPanelSettings" stepKey =" saveEditPanelSettings" />
151
151
<comment userInput =" Validate Column Height On Stage With Custom Min Height Matches Expected" stepKey =" commentValidateColumnHeight" />
152
- <actionGroup ref =" validateContentBlockHeightOnStage " stepKey =" assertInitialColumnHeightMatchesExpected" >
152
+ <actionGroup ref =" validateContentBlockHeightOnStageFromInteger " stepKey =" assertInitialColumnHeightMatchesExpected" >
153
153
<argument name =" contentBlock" value =" PageBuilderColumnContentBlock" />
154
154
<argument name =" index" value =" 1" />
155
- <argument name =" containerDefaultHeight" value =" PageBuilderAppearanceMinHeightProperty_200" />
156
- <argument name =" expectedPaddingTop" value =" PageBuilderPaddingProperty10" />
157
- <argument name =" expectedPaddingBottom" value =" PageBuilderPaddingProperty10" />
155
+ <argument name =" expectedHeight" value =" 210" />
158
156
</actionGroup >
159
157
<executeJS function =" {{PageBuilderActionsSection.computedHeightOnStage(PageBuilderColumnContentBlock.role,'1')}}" stepKey =" actualStageInitialColumnHeight" />
160
158
<comment userInput =" Validate Row Height adjusts to Column Height" stepKey =" commentValidateRowHeightAdjustToColumn" />
You can’t perform that action at this time.
0 commit comments