Skip to content

Commit fa05cce

Browse files
author
joiecaquicla
committed
magento2/magento2-page-builder#637: Form field/field group viewport scope - modified ViewportSwitcherMobileSlideItemMinHeightTest
1 parent 285d89f commit fa05cce

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/ViewportSwitcherMobile/ViewportSwitcherMobileSlideItemMinHeightTest.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
<argument name="property" value="PageBuilderMinHeightProperty_Empty"/>
3535
</actionGroup>
3636

37+
<actionGroup ref="unFocusOptionMenu" stepKey="unFocusSlideOptionMenu" before="duplicateContentType1">
38+
<argument name="contentType" value="PageBuilderSlideContentType"/>
39+
</actionGroup>
40+
3741
<!-- Duplicate Slide Item -->
3842
<actionGroup ref="duplicateContentType" stepKey="duplicateContentType1">
3943
<argument name="contentType" value="PageBuilderSliderContentType"/>
@@ -44,7 +48,7 @@
4448
<argument name="targetIndex" value="1"/>
4549
</actionGroup>
4650

47-
<actionGroup ref="unFocusOptionMenu" stepKey="unFocusSlideOptionMenu" before="openEditPanel1">
51+
<actionGroup ref="unFocusOptionMenu" stepKey="unFocusSlideOptionMenu1" before="openEditPanel1">
4852
<argument name="contentType" value="PageBuilderSlideContentType"/>
4953
</actionGroup>
5054

@@ -101,7 +105,7 @@
101105
<argument name="expectedProperty" value="{{PageBuilderMinHeightProperty_300.value}}"/>
102106
<argument name="cssProperty" value="minHeight"/>
103107
</actionGroup>
104-
<executeJS function="return document.querySelectorAll('{{SlideOnBackend.wrapperCSS}}')[1].getBoundingClientRect().height" stepKey="thirdMinHeightCMSBlockStageDesktop"/>
108+
<executeJS function="return document.querySelectorAll('{{SlideOnBackend.wrapperCSS}}')[2].getBoundingClientRect().height" stepKey="thirdMinHeightCMSBlockStageDesktop"/>
105109

106110
<!-- Validate CMS Block Stage Mobile Viewport -->
107111
<actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeFirstMinHeightCMSBlockStageMobile">
@@ -111,7 +115,7 @@
111115
</actionGroup>
112116
<executeJS function="return document.querySelectorAll('{{SlideOnBackend.wrapperCSS}}')[0].getBoundingClientRect().height" stepKey="firstMinHeightCMSBlockStageMobile"/>
113117

114-
<executeJS function="return document.querySelectorAll('{{SlideOnBackend.wrapperCSS}}')[0].getBoundingClientRect().height" stepKey="secondMinHeightCMSBlockStageMobile"/>
118+
<executeJS function="return document.querySelectorAll('{{SlideOnBackend.wrapperCSS}}')[1].getBoundingClientRect().height" stepKey="secondMinHeightCMSBlockStageMobile"/>
115119
<actionGroup ref="ValidateContentTypesStyleEqualsExpectedStyleActionGroup" stepKey="seeSecondMinHeightCMSBlockStageMobile">
116120
<argument name="selector" value="{{SlideOnBackend.wrapper('2')}}"/>
117121
<argument name="expectedProperty" value="$expectedSecondHeightCMSBlockStageMobile"/>

0 commit comments

Comments
 (0)