File tree Expand file tree Collapse file tree 11 files changed +85
-47
lines changed
Customer/Test/Mftf/ActionGroup Expand file tree Collapse file tree 11 files changed +85
-47
lines changed Original file line number Diff line number Diff line change 81
81
<click selector =" {{CheckoutPaymentSection.placeOrder}}" stepKey =" clickPlaceOrderButton" />
82
82
<seeElement selector =" {{CheckoutSuccessMainSection.success}}" stepKey =" orderIsSuccessfullyPlaced" />
83
83
<grabTextFrom selector =" {{CheckoutSuccessMainSection.orderNumber22}}" stepKey =" grabOrderNumber" />
84
+ <actionGroup ref =" StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey =" openOrderViewPage" />
85
+ <grabFromCurrentUrl regex =" ~/order_id/(\d+)/~" stepKey =" grabOrderId" />
84
86
85
87
<!-- Login as admin -->
86
88
<actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
87
89
88
- <!-- Open created order in backend -->
89
- <actionGroup ref =" AdminOrdersPageOpenActionGroup" stepKey =" goToOrders" />
90
- <actionGroup ref =" OpenOrderByIdActionGroup" stepKey =" filterOrderGridById" >
91
- <argument name =" orderId" value =" $grabOrderNumber" />
90
+ <actionGroup ref =" AdminOpenOrderByEntityIdActionGroup" stepKey =" filterOrdersGridById" >
91
+ <argument name =" entityId" value =" $grabOrderId" />
92
92
</actionGroup >
93
-
93
+ <comment userInput =" Comment is added to preserve Backward Compatibility" stepKey =" goToOrders" />
94
+ <comment userInput =" Comment is added to preserve Backward Compatibility" stepKey =" filterOrderGridById" />
95
+
94
96
<!-- Assert order total -->
95
97
<scrollTo selector =" {{AdminOrderTotalSection.grandTotal}}" stepKey =" scrollToOrderTotalSection" />
96
98
<see selector =" {{AdminOrderTotalSection.grandTotal}}" userInput =" $565.00" stepKey =" checkOrderTotalInBackend" />
Original file line number Diff line number Diff line change 90
90
<comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" waitForCheckoutPaymentSectionPageLoad" />
91
91
<comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" orderIsSuccessfullyPlaced" />
92
92
<grabTextFrom selector =" {{CheckoutSuccessMainSection.orderNumber22}}" stepKey =" grabOrderNumber" />
93
+ <actionGroup ref =" StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey =" openOrderViewPage" />
94
+ <grabFromCurrentUrl regex =" ~/order_id/(\d+)/~" stepKey =" grabOrderId" />
93
95
94
96
<!-- Login as admin -->
95
97
<actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
98
+
99
+ <!-- Step11. Go to admin Order page for newly created order-->
100
+ <actionGroup ref =" AdminOpenOrderByEntityIdActionGroup" stepKey =" openAdminOrderViewPage" >
101
+ <argument name =" entityId" value =" $grabOrderId" />
102
+ </actionGroup >
96
103
97
104
<!-- Open created order in backend -->
98
- <actionGroup ref =" AdminOrdersPageOpenActionGroup" stepKey =" goToOrders" />
99
- <actionGroup ref =" OpenOrderByIdActionGroup" stepKey =" filterOrderGridById" >
100
- <argument name =" orderId" value =" $grabOrderNumber" />
101
- </actionGroup >
105
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" goToOrders" />
106
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" filterOrderGridById" />
102
107
103
108
<!-- Assert order total -->
104
109
<scrollTo selector =" {{AdminOrderTotalSection.grandTotal}}" stepKey =" scrollToOrderTotalSection" />
Original file line number Diff line number Diff line change 83
83
<comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" waitForCheckoutPaymentSectionPageLoad" />
84
84
<comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" orderIsSuccessfullyPlaced" />
85
85
<grabTextFrom selector =" {{CheckoutSuccessMainSection.orderNumber22}}" stepKey =" grabOrderNumber" />
86
+ <actionGroup ref =" StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey =" openOrderViewPage" />
87
+ <grabFromCurrentUrl regex =" ~/order_id/(\d+)/~" stepKey =" grabOrderId" />
86
88
87
89
<actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
88
90
89
- <!-- Open created order in backend -->
90
- <actionGroup ref =" AdminOrdersPageOpenActionGroup" stepKey =" goToOrders" />
91
- <actionGroup ref =" OpenOrderByIdActionGroup" stepKey =" filterOrderGridById" >
92
- <argument name =" orderId" value =" $grabOrderNumber" />
91
+ <actionGroup ref =" AdminOpenOrderByEntityIdActionGroup" stepKey =" filterOrdersGridById" >
92
+ <argument name =" entityId" value =" $grabOrderId" />
93
93
</actionGroup >
94
+ <comment userInput =" Comment is added to preserve Backward Compatibility" stepKey =" goToOrders" />
95
+ <comment userInput =" Comment is added to preserve Backward Compatibility" stepKey =" filterOrderGridById" />
94
96
95
97
<!-- Assert order total -->
96
98
<scrollTo selector =" {{AdminOrderTotalSection.grandTotal}}" stepKey =" scrollToOrderTotalSection" />
Original file line number Diff line number Diff line change 75
75
<click selector =" {{CheckoutPaymentSection.placeOrder}}" stepKey =" clickPlaceOrderButton" />
76
76
<seeElement selector =" {{CheckoutSuccessMainSection.success}}" stepKey =" orderIsSuccessfullyPlaced" />
77
77
<grabTextFrom selector =" {{CheckoutSuccessMainSection.orderNumber22}}" stepKey =" grabOrderNumber" />
78
+ <actionGroup ref =" StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey =" openOrderViewPage" />
79
+ <grabFromCurrentUrl regex =" ~/order_id/(\d+)/~" stepKey =" grabOrderId" />
78
80
79
81
<!-- Login as admin -->
80
82
<actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
81
83
82
84
<!-- Open created order in backend -->
83
- <actionGroup ref =" AdminOrdersPageOpenActionGroup" stepKey =" goToOrders" />
84
- <actionGroup ref =" OpenOrderByIdActionGroup" stepKey =" filterOrderGridById" >
85
- <argument name =" orderId" value =" $grabOrderNumber" />
85
+ <actionGroup ref =" AdminOpenOrderByEntityIdActionGroup" stepKey =" openAdminOrderViewPage" >
86
+ <argument name =" entityId" value =" $grabOrderId" />
86
87
</actionGroup >
87
88
89
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" goToOrders" />
90
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" filterOrderGridById" />
88
91
<!-- Assert that shipping and billing address are the same -->
89
92
<grabTextFrom selector =" {{AdminShipmentAddressInformationSection.shippingAddress}}" stepKey =" shippingAddress" />
90
93
<grabTextFrom selector =" {{AdminShipmentAddressInformationSection.billingAddress}}" stepKey =" billingAddress" />
Original file line number Diff line number Diff line change 195
195
<click selector =" {{CheckoutPaymentSection.placeOrder}}" stepKey =" clickPlaceOrderButton" />
196
196
<seeElement selector =" {{CheckoutSuccessMainSection.success}}" stepKey =" orderIsSuccessfullyPlaced" />
197
197
<grabTextFrom selector =" {{CheckoutSuccessMainSection.orderNumber22}}" stepKey =" grabOrderNumber" />
198
+ <actionGroup ref =" StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey =" openOrderViewPage" />
199
+ <grabFromCurrentUrl regex =" ~/order_id/(\d+)/~" stepKey =" grabOrderId" />
198
200
199
201
<!-- Login as admin -->
200
202
<actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
201
203
202
204
<!-- Open created order -->
203
- <actionGroup ref =" AdminOrdersPageOpenActionGroup" stepKey =" goToOrders" />
204
- <actionGroup ref =" OpenOrderByIdActionGroup" stepKey =" filterOrderGridById" >
205
- <argument name =" orderId" value =" $grabOrderNumber" />
205
+ <actionGroup ref =" AdminOpenOrderByEntityIdActionGroup" stepKey =" openAdminOrderViewPage" >
206
+ <argument name =" entityId" value =" $grabOrderId" />
206
207
</actionGroup >
207
208
209
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" goToOrders" />
210
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" filterOrderGridById" />
208
211
<!-- Assert that addresses on order page the same -->
209
212
<grabTextFrom selector =" {{AdminShipmentAddressInformationSection.shippingAddress}}" stepKey =" shippingAddressOrderPage" />
210
213
<grabTextFrom selector =" {{AdminShipmentAddressInformationSection.billingAddress}}" stepKey =" billingAddressOrderPage" />
Original file line number Diff line number Diff line change 76
76
<!-- Place order and Assert success message -->
77
77
<actionGroup ref =" ClickPlaceOrderActionGroup" stepKey =" clickOnPlaceOrder" />
78
78
<grabTextFrom selector =" {{CheckoutSuccessMainSection.orderLink}}" stepKey =" orderId" />
79
+ <actionGroup ref =" StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey =" openOrderViewPage" />
80
+ <grabFromCurrentUrl regex =" ~/order_id/(\d+)/~" stepKey =" grabOrderId" />
79
81
80
- <!-- Open Order Index Page -->
81
- <actionGroup ref =" AdminOrdersPageOpenActionGroup" stepKey =" goToOrders" />
82
-
83
- <!-- Filter Order using orderId and assert order-->
84
- <actionGroup ref =" FilterOrderGridByIdActionGroup" stepKey =" filterOrderGridById" >
85
- <argument name =" orderId" value =" $orderId" />
82
+ <actionGroup ref =" AdminOpenOrderByEntityIdActionGroup" stepKey =" openAdminOrderViewPage" >
83
+ <argument name =" entityId" value =" $grabOrderId" />
86
84
</actionGroup >
87
-
88
- <click selector =" {{AdminOrdersGridSection.viewLink('$orderId')}}" stepKey =" clickOnViewLink" />
89
- <waitForPageLoad stepKey =" waitForOrderPageToLoad" />
85
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" goToOrders" />
86
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" filterOrderGridById" />
87
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" clickOnViewLink" />
88
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" waitForOrderPageToLoad" />
90
89
91
90
<!-- Ship the order and assert the shipping status -->
92
91
<actionGroup ref =" AdminShipThePendingOrderActionGroup" stepKey =" shipTheOrder" />
Original file line number Diff line number Diff line change
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 =" StorefrontOpenOrderViewPageActionGroup" >
12
+ <annotations >
13
+ <description >Navigates to Storefront Order View page</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" orderId" type =" string" />
17
+ </arguments >
18
+ <amOnPage url =" {{StorefrontCustomerOrderViewPage.url(orderId)}}" stepKey =" goToOrderViewPage" />
19
+ <waitForPageLoad stepKey =" waitForPageLoad" />
20
+ </actionGroup >
21
+ </actionGroups >
Original file line number Diff line number Diff line change 58
58
<comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" startCreateInvoice" />
59
59
<comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" submitInvoice" />
60
60
61
- <actionGroup ref =" AdminOrdersPageOpenActionGroup" stepKey =" onOrderPage" />
62
- <actionGroup ref =" AdminOrdersGridClearFiltersActionGroup" stepKey =" clearFilters" />
63
- <grabTextFrom selector =" {{AdminOrdersGridSection.orderIdByIncrementId($createCustomerCart.return$)}}" stepKey =" getOrderId" />
64
- <actionGroup ref =" OpenOrderByIdActionGroup" stepKey =" filterOrdersGridById" >
65
- <argument name =" orderId" value =" {$getOrderId}" />
61
+ <actionGroup ref =" AdminOpenOrderByEntityIdActionGroup" stepKey =" openAdminOrderViewPage" >
62
+ <argument name =" entityId" value =" $createCustomerCart.return$" />
66
63
</actionGroup >
64
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" onOrderPage" />
65
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" clearFilters" />
66
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" getOrderId" />
67
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" filterOrdersGridById" />
67
68
68
- <actionGroup ref =" StartToCreateCreditMemoActionGroup" stepKey =" startToCreateCreditMemo" >
69
- <argument name =" orderId" value =" {$getOrderId}" />
70
- </actionGroup >
69
+ <actionGroup ref =" AdminStartToCreateCreditMemoFromOrderPageActionGroup" stepKey =" startToCreateCreditMemo" />
71
70
<fillField selector =" {{AdminCreditMemoTotalSection.refundShipping}}" userInput =" 0" stepKey =" setRefundShipping" />
72
71
<actionGroup ref =" UpdateCreditMemoTotalsActionGroup" stepKey =" updateCreditMemoTotals" />
73
72
<actionGroup ref =" SubmitCreditMemoActionGroup" stepKey =" submitCreditMemo" />
Original file line number Diff line number Diff line change 59
59
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
60
60
</after >
61
61
62
- <actionGroup ref =" AdminOrdersPageOpenActionGroup" stepKey =" onOrderPage" />
63
- <actionGroup ref =" AdminOrdersGridClearFiltersActionGroup" stepKey =" clearFilters" />
64
- <grabTextFrom selector =" {{AdminOrdersGridSection.orderIdByIncrementId($createCustomerCart.return$)}}" stepKey =" grabOrderId" />
65
- <actionGroup ref =" OpenOrderByIdActionGroup" stepKey =" filterOrdersGridById" >
66
- <argument name =" orderId" value =" {$grabOrderId}" />
62
+ <actionGroup ref =" AdminOpenOrderByEntityIdActionGroup" stepKey =" openAdminOrderViewPage" >
63
+ <argument name =" entityId" value =" $createCustomerCart.return$" />
67
64
</actionGroup >
65
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" onOrderPage" />
66
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" clearFilters" />
67
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" grabOrderId" />
68
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" filterOrdersGridById" />
69
+
68
70
69
71
<actionGroup ref =" AdminOpenAndFillCreditMemoRefundActionGroup" stepKey =" fillCreditMemoRefund" >
70
72
<argument name =" itemQtyToRefund" value =" 1" />
88
90
<argument name =" Customer" value =" $$createCustomer$$" />
89
91
</actionGroup >
90
92
91
- <actionGroup ref =" StorefrontGoToCustomerOrderDetailsPageActionGroup " stepKey =" openOrderDetailPage" >
93
+ <actionGroup ref =" StorefrontOpenOrderViewPageActionGroup " stepKey =" openOrderDetailPage" >
92
94
<argument name =" orderId" value =" $createCustomerCart.return$" />
93
- <argument name =" orderNumber" value =" {$grabOrderId}" />
94
95
</actionGroup >
95
96
96
97
<actionGroup ref =" StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey =" clickRefund" />
Original file line number Diff line number Diff line change 31
31
<after >
32
32
<!-- Clear Filters-->
33
33
<actionGroup ref =" AdminClearFiltersActionGroup" stepKey =" ClearFiltersAfter" />
34
- <actionGroup ref = " AdminOrdersGridClearFiltersActionGroup " stepKey =" clearOrderListingFilters" />
34
+ <comment userInput = " Comment is added to preserve the step key for backward compatibility " stepKey =" clearOrderListingFilters" />
35
35
<deleteData createDataKey =" createSimpleCategory" stepKey =" deletePreReqCategory" />
36
36
<deleteData createDataKey =" createSimpleProduct" stepKey =" deletePreReqSimpleProduct" />
37
37
<!-- Logout from customer account-->
85
85
<!-- Step10. Click place order-->
86
86
<actionGroup ref =" ClickPlaceOrderActionGroup" stepKey =" placeOrder" />
87
87
<grabTextFrom selector =" {{CheckoutSuccessMainSection.orderNumber22}}" stepKey =" grabOrderNumber" />
88
+ <actionGroup ref =" StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey =" openOrderViewPage" />
89
+ <grabFromCurrentUrl regex =" ~/order_id/(\d+)/~" stepKey =" grabOrderId" />
90
+
88
91
<!-- Step11. Go to admin Order page for newly created order-->
89
- <actionGroup ref =" OpenOrderByIdActionGroup " stepKey =" filterOrdersGridById" >
90
- <argument name =" orderId " value =" {$grabOrderNumber} " />
92
+ <actionGroup ref =" AdminOpenOrderByEntityIdActionGroup " stepKey =" filterOrdersGridById" >
93
+ <argument name =" entityId " value =" $grabOrderId " />
91
94
</actionGroup >
92
95
93
96
<click selector =" {{AdminOrderDetailsMainActionsSection.ship}}" stepKey =" clickShipAction" />
You can’t perform that action at this time.
0 commit comments