Skip to content

Commit 17e268c

Browse files
ENGCOM-8615: [MFTF] Adding AdminGoToOrderStatusPageActionGroup #31603
- Merge Pull Request #31603 from AnnaAPak/magento2:add-AdminGoToOrderStatusPageActionGroup - Merged commits: 1. 5d84e2a 2. d766016 3. b628917
2 parents 8631818 + b628917 commit 17e268c

6 files changed

+27
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminGoToOrderStatusPageActionGroup">
12+
<annotations>
13+
<description>Goes to Stores->Order Status->Order Status Page.</description>
14+
</annotations>
15+
16+
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
17+
<waitForPageLoad stepKey="waitForPageLoaded"/>
18+
</actionGroup>
19+
</actionGroups>

app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrderStatusDuplicatingCodeTest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</after>
2727

2828
<!-- Go to new order status page -->
29-
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
29+
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPage"/>
3030
<click selector="{{AdminMainActionsSection.add}}" stepKey="clickCreateNewStatus"/>
3131

3232
<!-- Fill the form and validate message -->

app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrderStatusDuplicatingLabelTest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</after>
2727

2828
<!-- Go to new order status page -->
29-
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
29+
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPage"/>
3030
<click selector="{{AdminMainActionsSection.add}}" stepKey="clickCreateNewStatus"/>
3131

3232
<!-- Fill the form and validate message -->

app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrderStatusTest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</after>
2727

2828
<!-- Go to new order status page -->
29-
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
29+
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPage"/>
3030
<click selector="{{AdminMainActionsSection.add}}" stepKey="clickCreateNewStatus"/>
3131

3232
<!-- Fill the form and validate message -->

app/code/Magento/Sales/Test/Mftf/Test/AdminUnassignCustomOrderStatusTest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</after>
2626

2727
<!--Go to new order status page-->
28-
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
28+
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPage"/>
2929
<click selector="{{AdminMainActionsSection.add}}" stepKey="clickCreateNewStatus"/>
3030

3131
<!--Fill the form and validate save success message-->

app/code/Magento/Sales/Test/Mftf/Test/AssignCustomOrderStatusNotVisibleOnStorefrontTest.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
</after>
4848

4949
<!-- Create order status -->
50-
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
51-
<waitForPageLoad stepKey="waitForOrderStatusPageLoad"/>
50+
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPage"/>
51+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForOrderStatusPageLoad"/>
5252
<click selector="{{AdminMainActionsSection.add}}" stepKey="clickCreateNewStatus"/>
5353

5454
<!-- Fill form and validate message -->
@@ -119,8 +119,8 @@
119119
<see selector="{{AdminMessagesSection.success}}" userInput="We canceled 1 order(s)." stepKey="seeSuccessMessage"/>
120120

121121
<!-- Unassign order status -->
122-
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatus"/>
123-
<waitForPageLoad stepKey="waitForStatusPageLoad"/>
122+
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatus"/>
123+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStatusPageLoad"/>
124124
<actionGroup ref="FilterOrderStatusByLabelAndCodeActionGroup" stepKey="filterStatusGrid">
125125
<argument name="statusLabel" value="{{defaultOrderStatus.label}}"/>
126126
<argument name="statusCode" value="{{defaultOrderStatus.status}}"/>

0 commit comments

Comments
 (0)