Skip to content

Commit 6ebd7ec

Browse files
committed
MAGETWO-89294: Slider Data Separation
- updated MFTF selectors
1 parent aac4abc commit 6ebd7ec

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Section/PageBuilderSliderSection.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<element name="slideOptionsRemoveDisabled" type="button" selector="//li[contains(@class, 'pagebuilder-options-link')]//a[contains(@class, 'disabled')]"/>
3838
<element name="sliderOptions" type="button" selector="//div[contains(@class, 'pagebuilder-slider')]//ul[contains(@class, 'pagebuilder-options-links')]"/>
3939
<element name="addNewSlide" type="button" selector="div.pagebuilder-slider div.pagebuilder-options ul.pagebuilder-options-links li.pagebuilder-options-link a.add-child"/>
40-
<element name="default" type="button" selector="(//div[@class='slider-container'])[{{arg1}}][@style='border: {{arg2}}; border-radius: {{arg3}}px; margin: {{arg4}}px; padding: {{arg5}}px; min-height: {{arg6}}px;']" parameterized="true"/>
40+
<element name="default" type="button" selector="(//div[@class='slider-container'])[{{arg1}}][(contains(@style, 'border-style: {{arg2}}')) and contains(@style, 'border-radius: {{arg3}}px') and contains(@style, 'margin: {{arg4}}px') and contains(@style, 'padding: {{arg5}}px') and contains(@style, 'min-height: {{arg6}}px')]" parameterized="true"/>
4141
<element name="sliderContainer" type="button" selector="div.element-children.slider-container"/>
4242
<element name="firstSlideNavigationDot" type="button" selector="(//div[contains(@class, 'navigation-dot')])[1]"/>
4343
<element name="activeSlideTooltip" type="button" selector="//div[contains(@class, 'navigation-dot')]//span[contains(@role, 'tooltip')]"/>
@@ -184,7 +184,7 @@
184184
<element name="collageAlignment" type="button" selector="div[style*='text-align: center'][style*='magento']"/>
185185
<element name="posterOverlay" type="button" selector=".pagebuilder-poster-overlay[style*='rgba(255, 255, 255, 0.7)']"/>
186186
<element name="contentSectionName" type="button" selector="/div[@data-index='content']"/>
187-
<element name="slideBorderStyle" type="button" selector="div[style*='border: {{arg1}}px {{arg2}} {{arg3}}']" parameterized="true"/>
187+
<element name="slideBorderStyle" type="button" selector="//div[(contains(@style, 'border-width: {{arg1}}px')) and contains(@style, 'border-style: {{arg2}}') and contains(@style, 'border-color: {{arg3}}')]" parameterized="true"/>
188188
<element name="slideBorderRadiusStyle" type="button" selector="div[style*='border-radius: {{arg1}}']" parameterized="true"/>
189189
<element name="editFormBackgroundImagePreview" type="button" selector="//input[@name='background_image']/ancestor::div[@class='admin__field-control']/descendant::img"/>
190190
<element name="editFormBackgroundMobileImagePreview" type="button" selector="//input[@name='mobile_image']/ancestor::div[@class='admin__field-control']/descendant::img"/>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderColumnContentTest.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
<comment userInput="Validate Row Height adjusts to Tabs inside Column" stepKey="commentValidateRowHeightWithColumnAndTabs"/>
5151
<executeJS function="{{PageBuilderActionsSection.computedHeightOnStage(PageBuilderRowContentType.role,'1')}}" stepKey="actualStageRowHeightWithColumnsAndTabs"/>
5252
<executeJS function="return Math.round({$actualStageColumnHeightWithTabs}+{{PageBuilderPaddingProperty10.paddingTop}}+{{PageBuilderPaddingProperty10.paddingBottom}})" stepKey="expectedRowHeightWithColumnTabsAndPadding"/>
53-
<assertEquals stepKey="assertRowHeightAdjustsToTabsHeight">
53+
<assertGreaterThanOrEqual stepKey="assertRowHeightAdjustsToTabsHeight">
5454
<expectedResult type="variable">expectedRowHeightWithColumnTabsAndPadding</expectedResult>
5555
<actualResult type="variable">actualStageRowHeightWithColumnsAndTabs</actualResult>
56-
</assertEquals>
56+
</assertGreaterThanOrEqual>
5757
</test>
5858
<test name="TabsAddToColumnWithSetLargeMinimumHeightAndHeightDoesNotAdjust">
5959
<annotations>
@@ -95,10 +95,10 @@
9595
<comment userInput="Validate Row Height adjusts to Column Height" stepKey="commentValidateRowHeightAdjustToColumn"/>
9696
<executeJS function="{{PageBuilderActionsSection.computedHeightOnStage(PageBuilderRowContentType.role,'1')}}" stepKey="actualStageRowHeightWithColumns"/>
9797
<executeJS function="return Math.round({$actualStageInitialColumnHeight}+{{PageBuilderPaddingProperty10.paddingTop}}+{{PageBuilderPaddingProperty10.paddingBottom}})" stepKey="expectedRowHeightWithPaddingAndColumns"/>
98-
<assertEquals stepKey="assertRowHeightAdjustsToColumnHeight">
98+
<assertGreaterThanOrEqual stepKey="assertRowHeightAdjustsToColumnHeight">
9999
<expectedResult type="variable">expectedRowHeightWithPaddingAndColumns</expectedResult>
100100
<actualResult type="variable">actualStageRowHeightWithColumns</actualResult>
101-
</assertEquals>
101+
</assertGreaterThanOrEqual>
102102
<comment userInput="Drag Tabs to Column" stepKey="commentDragTabsToColumn"/>
103103
<click selector="{{PageBuilderActionsSection.interactiveGroup}}" stepKey="clickInteractiveGroup"/>
104104
<actionGroup ref="dragContentTypeToContainer" stepKey="dragTabsIntoFirstColumn">
@@ -115,10 +115,10 @@
115115
<comment userInput="Validate Row Height does not shrink to Tabs height" stepKey="commentValidateRowHeightWithColumnAndTabs"/>
116116
<executeJS function="{{PageBuilderActionsSection.computedHeightOnStage(PageBuilderRowContentType.role,'1')}}" stepKey="actualStageRowHeightWithColumnsAndTabs"/>
117117
<executeJS function="return Math.round({$actualStageInitialColumnHeight}+{{PageBuilderPaddingProperty10.paddingTop}}+{{PageBuilderPaddingProperty10.paddingBottom}})" stepKey="expectedRowHeightWithColumnTabsAndPadding"/>
118-
<assertEquals stepKey="assertRowHeightAdjustsToTabsHeight">
118+
<assertGreaterThanOrEqual stepKey="assertRowHeightAdjustsToTabsHeight">
119119
<expectedResult type="variable">expectedRowHeightWithColumnTabsAndPadding</expectedResult>
120120
<actualResult type="variable">actualStageRowHeightWithColumnsAndTabs</actualResult>
121-
</assertEquals>
121+
</assertGreaterThanOrEqual>
122122
</test>
123123
<test name="TabsAddToColumnWithSetSmallMinimumHeightAndHeightAdjusts">
124124
<annotations>
@@ -161,10 +161,10 @@
161161
<comment userInput="Validate Row Height adjusts to Column Height" stepKey="commentValidateRowHeightAdjustToColumn"/>
162162
<executeJS function="{{PageBuilderActionsSection.computedHeightOnStage(PageBuilderRowContentType.role,'1')}}" stepKey="actualStageRowHeightWithColumns"/>
163163
<executeJS function="return Math.round({$actualStageInitialColumnHeight}+{{PageBuilderPaddingProperty10.paddingTop}}+{{PageBuilderPaddingProperty10.paddingBottom}})" stepKey="expectedRowHeightWithPaddingAndColumns"/>
164-
<assertEquals stepKey="assertRowHeightAdjustsToColumnHeight">
164+
<assertGreaterThanOrEqual stepKey="assertRowHeightAdjustsToColumnHeight">
165165
<expectedResult type="variable">expectedRowHeightWithPaddingAndColumns</expectedResult>
166166
<actualResult type="variable">actualStageRowHeightWithColumns</actualResult>
167-
</assertEquals>
167+
</assertGreaterThanOrEqual>
168168
<comment userInput="Drag Tabs to Column" stepKey="commentDragTabsToColumn"/>
169169
<click selector="{{PageBuilderActionsSection.interactiveGroup}}" stepKey="clickInteractiveGroup"/>
170170
<actionGroup ref="dragContentTypeToContainer" stepKey="dragTabsIntoFirstColumn">
@@ -176,17 +176,17 @@
176176
<executeJS function="{{PageBuilderActionsSection.computedHeightOnStage(PageBuilderTabsContentType.role,'1')}}" stepKey="actualStageTabsHeight"/>
177177
<executeJS function="{{PageBuilderActionsSection.computedHeightOnStage(PageBuilderColumnContentType.role,'1')}}" stepKey="actualStageColumnHeightWithTabs"/>
178178
<executeJS function="return Math.round({$actualStageTabsHeight}+{{PageBuilderPaddingProperty10.paddingTop}}+{{PageBuilderPaddingProperty10.paddingBottom}})" stepKey="expectedColumnHeightWithTabsAndPadding"/>
179-
<assertEquals stepKey="assertColumnHeightAdjustsToTabsHeight">
179+
<assertGreaterThanOrEqual stepKey="assertColumnHeightAdjustsToTabsHeight">
180180
<expectedResult type="variable">expectedColumnHeightWithTabsAndPadding</expectedResult>
181181
<actualResult type="variable">actualStageColumnHeightWithTabs</actualResult>
182-
</assertEquals>
182+
</assertGreaterThanOrEqual>
183183
<comment userInput="Validate Row Height adjusts to Tabs inside Column" stepKey="commentValidateRowHeightWithColumnAndTabs"/>
184184
<executeJS function="{{PageBuilderActionsSection.computedHeightOnStage(PageBuilderRowContentType.role,'1')}}" stepKey="actualStageRowHeightWithColumnsAndTabs"/>
185185
<executeJS function="return Math.round({$actualStageColumnHeightWithTabs}+{{PageBuilderPaddingProperty10.paddingTop}}+{{PageBuilderPaddingProperty10.paddingBottom}})" stepKey="expectedRowHeightWithColumnTabsAndPadding"/>
186-
<assertEquals stepKey="assertRowHeightAdjustsToTabsHeight">
186+
<assertGreaterThanOrEqual stepKey="assertRowHeightAdjustsToTabsHeight">
187187
<expectedResult type="variable">expectedRowHeightWithColumnTabsAndPadding</expectedResult>
188188
<actualResult type="variable">actualStageRowHeightWithColumnsAndTabs</actualResult>
189-
</assertEquals>
189+
</assertGreaterThanOrEqual>
190190
</test>
191191
<test name="MapAddToColumn">
192192
<annotations>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderRowTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,10 @@
492492
<comment userInput="Validate Row Height adjusts to Slider Height on Stage" stepKey="commentValidateRowHeightAdjustToSlider"/>
493493
<executeJS function="{{PageBuilderActionsSection.computedHeightOnStage(PageBuilderRowContentType.role,'1')}}" stepKey="actualStageRowHeightWithSlider"/>
494494
<executeJS function="return Math.round({$actualStageInitialSliderHeight}+{{PageBuilderPaddingProperty10.paddingTop}}+{{PageBuilderPaddingProperty10.paddingBottom}})" stepKey="expectedRowHeightWithPaddingAndSlider"/>
495-
<assertEquals stepKey="assertRowHeightAdjustsToSliderHeight">
495+
<assertGreaterThanOrEqual stepKey="assertRowHeightAdjustsToSliderHeight">
496496
<expectedResult type="variable">expectedRowHeightWithPaddingAndSlider</expectedResult>
497497
<actualResult type="variable">actualStageRowHeightWithSlider</actualResult>
498-
</assertEquals>
498+
</assertGreaterThanOrEqual>
499499
</test>
500500
<test name="RowValidateAdvancedConfigurationDefaultValues">
501501
<annotations>

0 commit comments

Comments
 (0)