Skip to content

Commit 9814c55

Browse files
MAGETWO-91974: [Testing] Create/Update Automated Tests
- update duplicate test to use Stacked appearance
1 parent 225a267 commit 9814c55

File tree

1 file changed

+37
-5
lines changed

1 file changed

+37
-5
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/PageBuilder/Test/AdminPageBuilderButtonGroupTests.xml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
<testCaseId value="MAGETWO-92014"/>
6969
<group value="pagebuilder"/>
7070
<group value="pagebuilder-buttons"/>
71+
<group value="pagebuilder-buttonGroup"/>
7172
</annotations>
7273
<before>
7374
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
@@ -100,6 +101,7 @@
100101
<testCaseId value="MAGETWO-92013"/>
101102
<group value="pagebuilder"/>
102103
<group value="pagebuilder-buttons"/>
104+
<group value="pagebuilder-buttonGroup"/>
103105
</annotations>
104106
<before>
105107
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
@@ -121,6 +123,9 @@
121123
<!-- Fill All Fields -->
122124
<comment userInput="Fill All Fields" stepKey="commentEdit"/>
123125
<actionGroup ref="expandConfigurationSection" stepKey="expandAdvancedSection"/>
126+
<actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearance">
127+
<argument name="property" value="PageBuilderAppearancePropertyStacked"/>
128+
</actionGroup>
124129
<actionGroup ref="chooseVisualSelectOption" stepKey="enterAlignment">
125130
<argument name="property" value="PageBuilderAdvancedAlignmentPropertyCenter"/>
126131
</actionGroup>
@@ -149,8 +154,8 @@
149154
<!-- Add Button -->
150155
<comment userInput="Add Button" stepKey="commentAddButton"/>
151156
<actionGroup ref="addButton" stepKey="addButton2"/>
152-
<!-- Edit 1st button -->
153-
<comment userInput="Edit 1st Button" stepKey="commentEditButton"/>
157+
<!-- Edit buttons -->
158+
<comment userInput="Edit Buttons" stepKey="commentEditButtons"/>
154159
<actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditMenuOnStage1">
155160
<argument name="contentBlockType" value="PageBuilderButtonItemContentBlock"/>
156161
<argument name="contentBlockIndex" value="1"/>
@@ -163,10 +168,14 @@
163168
</actionGroup>
164169
<actionGroup ref="fillSlideOutPanelLinkUrlField" stepKey="fillButton1LinkField">
165170
<argument name="property" value="PageBuilderButtonItemLink_Secure"/>
166-
<argument name="selection" value="ExternalLink"/>
171+
<argument name="selection" value="{{ExternalLink.url}}"/>
167172
<argument name="newTab" value="PageBuilderButtonItemOpenInNewTab_False"/>
168173
</actionGroup>
169174
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings2"/>
175+
<actionGroup ref="inlineEditButton" stepKey="inlineEditButton2">
176+
<argument name="text" value="PageBuilderButtonItemText_Common2"/>
177+
<argument name="index" value="2"/>
178+
</actionGroup>
170179
<!-- Duplicate and Validate Stage -->
171180
<comment userInput="Duplicate" stepKey="commentDuplicate"/>
172181
<actionGroup ref="duplicateContentBlock" stepKey="duplicateContentBlock">
@@ -185,6 +194,11 @@
185194
<argument name="padding" value="PageBuilderPaddingPropertyUnique"/>
186195
<argument name="index" value="2"/>
187196
</actionGroup>
197+
<actionGroup ref="validateButtonGroupStackedAppearance" stepKey="seeAppearanceOnStage">
198+
<argument name="buttonGroupPage" value="ButtonGroupOnStage"/>
199+
<argument name="buttonItemPage" value="ButtonItemOnStage"/>
200+
<argument name="index" value="2"/>
201+
</actionGroup>
188202
<!-- 1st Button -->
189203
<actionGroup ref="validateButtonItemContent" stepKey="validateButton2Stage1">
190204
<argument name="page" value="ButtonItemOnStage"/>
@@ -197,6 +211,7 @@
197211
<!-- 2nd Button -->
198212
<actionGroup ref="validateButtonItemContent" stepKey="validateButton1Stage1">
199213
<argument name="page" value="ButtonItemOnStage"/>
214+
<argument name="text" value="PageBuilderButtonItemText_Common2"/>
200215
<argument name="index" value="4"/>
201216
</actionGroup>
202217
<actionGroup ref="openPageBuilderEditPanelByIndex" stepKey="openEditMenuOnStage2">
@@ -206,6 +221,9 @@
206221
<!-- Validate Edit Panel For Duplicate -->
207222
<comment userInput="Validate Edit Panel For Duplicate" stepKey="commentValidateEdit"/>
208223
<actionGroup ref="expandConfigurationSection" stepKey="expandAdvancedSection2"/>
224+
<actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="validateAppearance">
225+
<argument name="property" value="PageBuilderAppearancePropertyStacked"/>
226+
</actionGroup>
209227
<actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="validateAlignment">
210228
<argument name="property" value="PageBuilderAdvancedAlignmentPropertyCenter"/>
211229
</actionGroup>
@@ -247,6 +265,11 @@
247265
<argument name="padding" value="PageBuilderPaddingPropertyUnique"/>
248266
<argument name="index" value="2"/>
249267
</actionGroup>
268+
<actionGroup ref="validateButtonGroupStackedAppearance" stepKey="seeAppearanceOnStage2">
269+
<argument name="buttonGroupPage" value="ButtonGroupOnStage"/>
270+
<argument name="buttonItemPage" value="ButtonItemOnStage"/>
271+
<argument name="index" value="2"/>
272+
</actionGroup>
250273
<!-- 1st Button -->
251274
<actionGroup ref="validateButtonItemContent" stepKey="validateButton2Stage2">
252275
<argument name="page" value="ButtonItemOnStage"/>
@@ -259,6 +282,7 @@
259282
<!-- 2nd Button -->
260283
<actionGroup ref="validateButtonItemContent" stepKey="validateButton1Stage2">
261284
<argument name="page" value="ButtonItemOnStage"/>
285+
<argument name="text" value="PageBuilderButtonItemText_Common2"/>
262286
<argument name="index" value="4"/>
263287
</actionGroup>
264288
<!-- Validate Storefront -->
@@ -278,6 +302,11 @@
278302
<argument name="padding" value="PageBuilderPaddingPropertyUnique"/>
279303
<argument name="index" value="2"/>
280304
</actionGroup>
305+
<actionGroup ref="validateButtonGroupStackedAppearance" stepKey="seeAppearanceOnStorefront">
306+
<argument name="buttonGroupPage" value="ButtonGroupOnStorefront"/>
307+
<argument name="buttonItemPage" value="ButtonItemOnStorefront"/>
308+
<argument name="index" value="2"/>
309+
</actionGroup>
281310
<!-- 1st Button -->
282311
<actionGroup ref="validateButtonItemContent" stepKey="validateButton2Storefront">
283312
<argument name="page" value="ButtonItemOnStorefront"/>
@@ -288,8 +317,11 @@
288317
<argument name="index" value="3"/>
289318
</actionGroup>
290319
<!-- 2nd Button -->
291-
<waitForElementVisible selector="{{ButtonItemOnStorefront.base('4')}}" stepKey="waitForButton2"/>
292-
<waitForElement selector="{{ButtonItemOnStorefront.emptyButtonItemElement('4')}}" stepKey="waitForButton2Empty"/>
320+
<actionGroup ref="validateButtonItemContent" stepKey="validateButton1Storefront2">
321+
<argument name="page" value="ButtonItemOnStorefront"/>
322+
<argument name="text" value="PageBuilderButtonItemText_Common2"/>
323+
<argument name="index" value="4"/>
324+
</actionGroup>
293325
</test>
294326
<test name="ButtonGroupValidateAdvancedConfigurationDefaultValues">
295327
<annotations>

0 commit comments

Comments
 (0)