Skip to content

Commit 887f07f

Browse files
committed
MC-3167: Update MFTF Tests
- expand panel to access heading content type for various tests
1 parent 859e544 commit 887f07f

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@
216216
<actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage">
217217
<argument name="contentType" value="PageBuilderColumnContentType"/>
218218
</actionGroup>
219+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
220+
<argument name="group" value="PageBuilderHeadingContentType"/>
221+
</actionGroup>
219222
<actionGroup ref="dragContentTypeToContainer" stepKey="dragHeadingIntoColumn">
220223
<argument name="contentType" value="PageBuilderHeadingContentType"/>
221224
<argument name="contentTypeIndex" value="1"/>
@@ -326,6 +329,9 @@
326329
</actionGroup>
327330
<seeNumberOfElements selector="{{ColumnOnBackend.columnGroupColumns('1')}}" userInput="3" stepKey="seeThreeColumnsFirstGroup"/>
328331
<seeNumberOfElements selector="{{ColumnOnBackend.allColumns}}" userInput="5" stepKey="validateFiveTotalColumns"/>
332+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
333+
<argument name="group" value="PageBuilderHeadingContentType"/>
334+
</actionGroup>
329335
<actionGroup ref="dragContentTypeToContainer" stepKey="dragHeadingIntoColumn">
330336
<argument name="contentType" value="PageBuilderHeadingContentType"/>
331337
<argument name="contentTypeIndex" value="1"/>
@@ -384,6 +390,9 @@
384390
<actionGroup ref="dragContentTypeToStage" stepKey="dragFirstColumnIntoStage">
385391
<argument name="contentType" value="PageBuilderColumnContentType"/>
386392
</actionGroup>
393+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
394+
<argument name="group" value="PageBuilderHeadingContentType"/>
395+
</actionGroup>
387396
<actionGroup ref="dragContentTypeToContainer" stepKey="dragHeadingIntoColumn">
388397
<argument name="contentType" value="PageBuilderHeadingContentType"/>
389398
<argument name="contentTypeIndex" value="1"/>

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@
259259
<argument name="property" value="PageBuilderVerticalAlignmentPropertyTop"/>
260260
</actionGroup>
261261
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsFirstColumn"/>
262+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
263+
<argument name="group" value="PageBuilderHeadingContentType"/>
264+
</actionGroup>
262265
<actionGroup ref="dragContentTypeToContainer" stepKey="dragHeadingToFirstColumn">
263266
<argument name="contentType" value="PageBuilderHeadingContentType"/>
264267
<argument name="containerTargetType" value="PageBuilderColumnContentType"/>
@@ -368,6 +371,9 @@
368371
<argument name="property" value="PageBuilderVerticalAlignmentPropertyTop"/>
369372
</actionGroup>
370373
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsFirstColumn"/>
374+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
375+
<argument name="group" value="PageBuilderHeadingContentType"/>
376+
</actionGroup>
371377
<actionGroup ref="dragContentTypeToContainer" stepKey="dragHeadingToFirstColumn">
372378
<argument name="contentType" value="PageBuilderHeadingContentType"/>
373379
<argument name="containerTargetType" value="PageBuilderColumnContentType"/>
@@ -1253,6 +1259,9 @@
12531259
<argument name="containerTargetIndex" value="1"/>
12541260
<argument name="contentTypeIndex" value="1"/>
12551261
</actionGroup>
1262+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
1263+
<argument name="group" value="PageBuilderHeadingContentType"/>
1264+
</actionGroup>
12561265
<actionGroup ref="dragContentTypeToContainer" stepKey="dragHeading1ToFirstColumn">
12571266
<argument name="contentType" value="PageBuilderHeadingContentType"/>
12581267
<argument name="containerTargetType" value="PageBuilderColumnContentType"/>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,9 @@
692692

693693
<!-- Add a single header into the first row -->
694694
<comment userInput="Add a heading to the stage" stepKey="commentAddHeading"/>
695+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroupElements">
696+
<argument name="group" value="PageBuilderHeadingContentType"/>
697+
</actionGroup>
695698
<actionGroup ref="dragContentTypeToStage" stepKey="dragThirdHeaderIntoStage">
696699
<argument name="contentType" value="PageBuilderHeadingContentType"/>
697700
</actionGroup>

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@
227227
<waitForElementVisible selector="{{RowOnStage.empty('1')}}" stepKey="waitForEmptyRow"/>
228228
<see selector="{{RowOnStage.base('1')}}" userInput="Drag content types or columns here" stepKey="seeRowPlaceholder"/>
229229
<see selector="{{RowOnStage.displayLabel('1')}}" userInput="Row" stepKey="seeRowDisplayLabel"/>
230+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
231+
<argument name="group" value="PageBuilderHeadingContentType"/>
232+
</actionGroup>
230233
<actionGroup ref="dragContentTypeToStage" stepKey="dragHeaderToRow">
231234
<argument name="contentType" value="PageBuilderHeadingContentType"/>
232235
</actionGroup>
@@ -262,6 +265,9 @@
262265
<expectedResult type="string">320</expectedResult>
263266
<actualResult type="variable">getEmptyRowHeight</actualResult>
264267
</assertEquals>
268+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
269+
<argument name="group" value="PageBuilderHeadingContentType"/>
270+
</actionGroup>
265271
<actionGroup ref="dragContentTypeToStage" stepKey="dragHeaderToRow">
266272
<argument name="contentType" value="PageBuilderHeadingContentType"/>
267273
</actionGroup>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,9 @@
14221422
<executeJS function="return Math.round({$sliderWidthSansPadding}/20)" stepKey="sliderWidthOffset"/>
14231423
<executeJS function="return Math.round({$actualStageSliderHeight}-{{PageBuilderAdvancedMarginsAndPaddingPropertyDefaultSlide.paddingTop}}-{{PageBuilderAdvancedMarginsAndPaddingPropertyDefaultSlide.paddingBottom}})" stepKey="sliderHeightSansPadding"/>
14241424
<executeJS function="return Math.round({$sliderHeightSansPadding}/5)" stepKey="sliderHeightOffset"/>
1425+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroupElements">
1426+
<argument name="group" value="PageBuilderHeadingContentType"/>
1427+
</actionGroup>
14251428
<actionGroup ref="dragContentTypeToContentType" stepKey="dragHeadingOntoSliderTop">
14261429
<argument name="contentType" value="PageBuilderHeadingContentType"/>
14271430
<argument name="targetBlockType" value="PageBuilderSliderContentType"/>

0 commit comments

Comments
 (0)