Skip to content

Commit a8b45b7

Browse files
committed
MC-3167: Update MFTF Tests
- expand panel to access button content type for button item and tab tests
1 parent 845cd67 commit a8b45b7

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
</actionGroup>
3535
<!-- Add Button Group -->
3636
<comment userInput="Add Button Group" stepKey="commentAddButtonGroup"/>
37+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
38+
<argument name="group" value="PageBuilderButtonsContentType"/>
39+
</actionGroup>
3740
<actionGroup ref="dragContentTypeToStage" stepKey="dragButtonsOntoStage">
3841
<argument name="contentType" value="PageBuilderButtonsContentType"/>
3942
</actionGroup>
@@ -75,6 +78,9 @@
7578
</actionGroup>
7679
<!-- Add Button Group -->
7780
<comment userInput="Add Button Group" stepKey="commentAddButtonGroup"/>
81+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
82+
<argument name="group" value="PageBuilderButtonsContentType"/>
83+
</actionGroup>
7884
<actionGroup ref="dragContentTypeToStage" stepKey="dragButtonsOntoStage">
7985
<argument name="contentType" value="PageBuilderButtonsContentType"/>
8086
</actionGroup>
@@ -223,6 +229,9 @@
223229
</actionGroup>
224230
<!-- Add Button Group -->
225231
<comment userInput="Add Button Group" stepKey="commentAddButtonGroup"/>
232+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
233+
<argument name="group" value="PageBuilderButtonsContentType"/>
234+
</actionGroup>
226235
<actionGroup ref="dragContentTypeToStage" stepKey="dragContentTypeToStage">
227236
<argument name="contentType" value="PageBuilderButtonsContentType"/>
228237
</actionGroup>
@@ -287,6 +296,9 @@
287296
</actionGroup>
288297
<!-- Add Button Group -->
289298
<comment userInput="Add Button Group" stepKey="commentAddButtonGroup"/>
299+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
300+
<argument name="group" value="PageBuilderButtonsContentType"/>
301+
</actionGroup>
290302
<actionGroup ref="dragContentTypeToStage" stepKey="dragContentTypeToStage">
291303
<argument name="contentType" value="PageBuilderButtonsContentType"/>
292304
</actionGroup>
@@ -345,6 +357,9 @@
345357
</actionGroup>
346358
<!-- Add Button Group -->
347359
<comment userInput="Add Button Group" stepKey="commentAddButtonGroup"/>
360+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
361+
<argument name="group" value="PageBuilderButtonsContentType"/>
362+
</actionGroup>
348363
<actionGroup ref="dragContentTypeToStage" stepKey="dragContentTypeToStage">
349364
<argument name="contentType" value="PageBuilderButtonsContentType"/>
350365
</actionGroup>
@@ -580,6 +595,9 @@
580595
</actionGroup>
581596
<!-- Add Button Group -->
582597
<comment userInput="Add Button Group" stepKey="commentAddButtonGroup"/>
598+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
599+
<argument name="group" value="PageBuilderButtonsContentType"/>
600+
</actionGroup>
583601
<actionGroup ref="dragContentTypeToStage" stepKey="dragButtonsOntoStage">
584602
<argument name="contentType" value="PageBuilderButtonsContentType"/>
585603
</actionGroup>
@@ -686,6 +704,9 @@
686704
</actionGroup>
687705
<!-- Add Button Group -->
688706
<comment userInput="Add Button Group" stepKey="commentAddButtonGroup"/>
707+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
708+
<argument name="group" value="PageBuilderButtonsContentType"/>
709+
</actionGroup>
689710
<actionGroup ref="dragContentTypeToStage" stepKey="dragContentTypeToStage">
690711
<argument name="contentType" value="PageBuilderButtonsContentType"/>
691712
</actionGroup>
@@ -858,6 +879,9 @@
858879
</actionGroup>
859880
<!-- Add Button Group -->
860881
<comment userInput="Add Button Group" stepKey="commentAddButtonGroup"/>
882+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
883+
<argument name="group" value="PageBuilderButtonsContentType"/>
884+
</actionGroup>
861885
<actionGroup ref="dragContentTypeToStage" stepKey="dragButtonsOntoStage">
862886
<argument name="contentType" value="PageBuilderButtonsContentType"/>
863887
</actionGroup>
@@ -958,6 +982,9 @@
958982
</after>
959983
<!-- Add Button Group -->
960984
<comment userInput="Add Button Group" stepKey="commentAddButtonGroup"/>
985+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
986+
<argument name="group" value="PageBuilderButtonsContentType"/>
987+
</actionGroup>
961988
<actionGroup ref="dragContentTypeToStage" stepKey="dragButtonsOntoStage">
962989
<argument name="contentType" value="PageBuilderButtonsContentType"/>
963990
</actionGroup>
@@ -1009,6 +1036,9 @@
10091036
</actionGroup>
10101037
<!-- Add Button Group -->
10111038
<comment userInput="Add Button Group" stepKey="commentAddButtonGroup"/>
1039+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
1040+
<argument name="group" value="PageBuilderButtonsContentType"/>
1041+
</actionGroup>
10121042
<actionGroup ref="dragContentTypeToStage" stepKey="dragButtonsOntoStage">
10131043
<argument name="contentType" value="PageBuilderButtonsContentType"/>
10141044
</actionGroup>
@@ -1076,6 +1106,9 @@
10761106
</actionGroup>
10771107
<!-- Add Button Group -->
10781108
<comment userInput="Add Button Group" stepKey="commentAddButtonGroup"/>
1109+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
1110+
<argument name="group" value="PageBuilderButtonsContentType"/>
1111+
</actionGroup>
10791112
<actionGroup ref="dragContentTypeToStage" stepKey="dragButtonsOntoStage">
10801113
<argument name="contentType" value="PageBuilderButtonsContentType"/>
10811114
</actionGroup>
@@ -1158,6 +1191,9 @@
11581191
</actionGroup>
11591192
<!-- Add Button Group -->
11601193
<comment userInput="Add Button Group" stepKey="commentAddButtonGroup"/>
1194+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
1195+
<argument name="group" value="PageBuilderButtonsContentType"/>
1196+
</actionGroup>
11611197
<actionGroup ref="dragContentTypeToStage" stepKey="dragButtonsOntoStage">
11621198
<argument name="contentType" value="PageBuilderButtonsContentType"/>
11631199
</actionGroup>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,6 @@
198198
</actionGroup>
199199
<!-- Add Tabs to Stage -->
200200
<comment userInput="Add Tabs to Stage" stepKey="addTabsToStage"/>
201-
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
202-
<argument name="group" value="PageBuilderTabsContentType"/>
203-
</actionGroup>
204201
<actionGroup ref="dragContentTypeToStage" stepKey="dragTabsIntoStage">
205202
<argument name="contentType" value="PageBuilderTabsContentType"/>
206203
</actionGroup>
@@ -210,6 +207,9 @@
210207
<waitForElementVisible selector="{{TabOnStage.tabContent('1')}}" stepKey="waitForFirstTabContent"/>
211208
<waitForElementVisible selector="{{TabOnStage.tabHeader('1')}}" stepKey="waitForFirstTabHeader"/>
212209
<!-- Add Button to Tab -->
210+
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
211+
<argument name="group" value="PageBuilderButtonsContentType"/>
212+
</actionGroup>
213213
<actionGroup ref="dragContentTypeToContainer" stepKey="dragButtonOntoTab">
214214
<argument name="contentType" value="PageBuilderButtonsContentType"/>
215215
<argument name="containerTargetType" value="PageBuilderTabContentType"/>

0 commit comments

Comments
 (0)