File tree Expand file tree Collapse file tree 5 files changed +27
-16
lines changed
app/code/Magento/Sales/Test/Mftf Expand file tree Collapse file tree 5 files changed +27
-16
lines changed 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 =" StorefrontClickRefundTabCustomerOrderViewActionGroup" >
12+ <annotations >
13+ <description >Click "Refund" tab for customer order view.</description >
14+ </annotations >
15+
16+ <click selector =" {{StorefrontCustomerOrderSection.tabRefund}}" stepKey =" clickRefundTab" />
17+ <waitForPageLoad stepKey =" waitForPageLoad" />
18+ </actionGroup >
19+ </actionGroups >
Original file line number Diff line number Diff line change 129129 </actionGroup >
130130
131131 <!-- Assert refunded Grand Total on frontend -->
132- <amOnPage url =" {{StorefrontCustomerDashboardPage.url}}" stepKey =" onAccountPage" />
133- <waitForPageLoad stepKey =" waitForPage" />
132+ <actionGroup ref =" StorefrontOpenMyAccountPageActionGroup" stepKey =" onAccountPage" />
134133 <scrollTo selector =" {{StorefrontCustomerResentOrdersSection.blockResentOrders}}" stepKey =" scrollToResent" />
135134 <click selector =" {{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey =" clickOnOrder" />
136135 <waitForPageLoad stepKey =" waitForViewOrder" />
137- <click selector =" {{StorefrontCustomerOrderSection.tabRefund}}" stepKey =" clickRefund" />
138- <waitForPageLoad stepKey =" waitRefundsLoad" />
136+ <actionGroup ref =" StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey =" clickRefund" />
139137 <scrollTo selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey =" scrollToGrandTotal" />
140138 <see selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput =" 555.00" stepKey =" seeGrandTotal" />
141139 </test >
Original file line number Diff line number Diff line change 123123 </actionGroup >
124124
125125 <!-- Assert refunded Grand Total on frontend -->
126- <amOnPage url =" {{StorefrontCustomerDashboardPage.url}}" stepKey =" onAccountPage" />
127- <waitForPageLoad stepKey =" waitForPage" />
126+ <actionGroup ref =" StorefrontOpenMyAccountPageActionGroup" stepKey =" onAccountPage" />
128127 <scrollTo selector =" {{StorefrontCustomerResentOrdersSection.blockResentOrders}}" stepKey =" scrollToResent" />
129128 <click selector =" {{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey =" clickOnOrder" />
130129 <waitForPageLoad stepKey =" waitForViewOrder" />
131- <click selector =" {{StorefrontCustomerOrderSection.tabRefund}}" stepKey =" clickRefund" />
132- <waitForPageLoad stepKey =" waitRefundsLoad" />
130+ <actionGroup ref =" StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey =" clickRefund" />
133131 <scrollTo selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey =" scrollToGrandTotal" />
134132 <see selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput =" 110.00" stepKey =" seeGrandTotal" />
135133
Original file line number Diff line number Diff line change 116116 </actionGroup >
117117
118118 <!-- Assert refunded Grand Total on frontend -->
119- <amOnPage url =" {{StorefrontCustomerDashboardPage.url}}" stepKey =" onAccountPage" />
120- <waitForPageLoad stepKey =" waitForPage" />
119+ <actionGroup ref =" StorefrontOpenMyAccountPageActionGroup" stepKey =" onAccountPage" />
121120 <scrollTo selector =" {{StorefrontCustomerResentOrdersSection.blockResentOrders}}" stepKey =" scrollToResent" />
122121 <click selector =" {{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey =" clickOnOrder" />
123122 <waitForPageLoad stepKey =" waitForViewOrder" />
124- <click selector =" {{StorefrontCustomerOrderSection.tabRefund}}" stepKey =" clickRefund" />
125- <waitForPageLoad stepKey =" waitRefundsLoad" />
123+ <actionGroup ref =" StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey =" clickRefund" />
126124 <scrollTo selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey =" scrollToGrandTotal" />
127125 <see selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput =" 555.00" stepKey =" seeGrandTotal" />
128126 </test >
Original file line number Diff line number Diff line change 115115 </actionGroup >
116116
117117 <!-- Assert refunded Grand Total on frontend -->
118- <amOnPage url =" {{StorefrontCustomerDashboardPage.url}}" stepKey =" onAccountPage" />
119- <waitForPageLoad stepKey =" waitForPage" />
118+ <actionGroup ref =" StorefrontOpenMyAccountPageActionGroup" stepKey =" onAccountPage" />
120119 <scrollTo selector =" {{StorefrontCustomerResentOrdersSection.blockResentOrders}}" stepKey =" scrollToResent" />
121120 <click selector =" {{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey =" clickOnOrder" />
122121 <waitForPageLoad stepKey =" waitForViewOrder" />
123- <click selector =" {{StorefrontCustomerOrderSection.tabRefund}}" stepKey =" clickRefund" />
124- <waitForPageLoad stepKey =" waitRefundsLoad" />
122+ <actionGroup ref =" StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey =" clickRefund" />
125123 <scrollTo selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey =" scrollToGrandTotal" />
126124 <see selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput =" 555.00" stepKey =" seeGrandTotal" />
127125 </test >
You can’t perform that action at this time.
0 commit comments