Skip to content

Commit 24f9954

Browse files
committed
Created action group for massive actions in order admin grid
1 parent c66d517 commit 24f9954

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

app/code/Magento/Checkout/Test/Mftf/Test/CheckCheckoutSuccessPageTest.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@
3434
<actionGroup ref="AdminGridColumnShowActionGroup" stepKey="showCustomerEmailColumn">
3535
<argument name="columnLabel" value="Customer Email"/>
3636
</actionGroup>
37-
<actionGroup ref="AdminOrderChangeByCustomerEmailActionGroup" stepKey="cancelOrders">
38-
<argument name="customerEmail" value="$$createSimpleUsCustomer.email$$"/>
37+
<actionGroup ref="AdminGridFilterFillInputFieldActionGroup" stepKey="filterOrdersByCustomerEmail">
38+
<argument name="filterInputName" value="customer_email"/>
39+
<argument name="filterValue" value="$$createSimpleUsCustomer.email$$"/>
3940
</actionGroup>
41+
<actionGroup ref="AdminGridFilterApplyActionGroup" stepKey="applyFilters"/>
42+
<actionGroup ref="AdminOrderBulkActionOnGridActionGroup" stepKey="cancelOrders"/>
4043
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
4144

4245
<!--Logout from customer account-->

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOrderChangeByCustomerEmailActionGroup.xml renamed to app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOrderBulkActionOnGridActionGroup.xml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,16 @@
77
-->
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10-
<actionGroup name="AdminOrderChangeByCustomerEmailActionGroup">
10+
<actionGroup name="AdminOrderBulkActionOnGridActionGroup">
1111
<annotations>
1212
<description>
13-
Changes all orders found by Customer Email field on Admin Order Grid page.
13+
Massive action for all rows on Admin Order Grid page.
1414
</description>
1515
</annotations>
1616
<arguments>
17-
<argument name="customerEmail" type="string"/>
1817
<argument name="actionLabel" type="string" defaultValue="Cancel"/>
1918
</arguments>
2019

21-
<!-- Filter orders by Customer Email -->
22-
<click selector="{{AdminDataGridFilterSection.filterExpand}}" stepKey="openOrderFilters"/>
23-
<fillField
24-
selector="{{AdminDataGridFilterSection.inputFieldByNameAttr('customer_email')}}"
25-
userInput="{{customerEmail}}"
26-
stepKey="fillCustomerEmailFilter"
27-
/>
28-
<click selector="{{AdminDataGridFilterSection.apply}}" stepKey="applyOrderFilters"/>
29-
<waitForLoadingMaskToDisappear stepKey="waitAfterApplyFilters"/>
30-
31-
<!-- Change found orders -->
3220
<click selector="{{AdminGridSelectRows.multicheckDropdown}}" stepKey="openMulticheckDropdown"/>
3321
<click selector="{{AdminGridSelectRows.multicheckOption('Select All')}}" stepKey="selectAllOrders"/>
3422
<click selector="{{AdminGridSelectRows.bulkActionDropdown}}" stepKey="clickActionDropdown"/>

0 commit comments

Comments
 (0)