File tree 5 files changed +27
-16
lines changed
app/code/Magento/Sales/Test/Mftf
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 129
129
</actionGroup >
130
130
131
131
<!-- Assert refunded Grand Total on frontend -->
132
- <amOnPage url =" {{StorefrontCustomerDashboardPage.url}}" stepKey =" onAccountPage" />
133
- <waitForPageLoad stepKey =" waitForPage" />
132
+ <actionGroup ref =" StorefrontOpenMyAccountPageActionGroup" stepKey =" onAccountPage" />
134
133
<scrollTo selector =" {{StorefrontCustomerResentOrdersSection.blockResentOrders}}" stepKey =" scrollToResent" />
135
134
<click selector =" {{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey =" clickOnOrder" />
136
135
<waitForPageLoad stepKey =" waitForViewOrder" />
137
- <click selector =" {{StorefrontCustomerOrderSection.tabRefund}}" stepKey =" clickRefund" />
138
- <waitForPageLoad stepKey =" waitRefundsLoad" />
136
+ <actionGroup ref =" StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey =" clickRefund" />
139
137
<scrollTo selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey =" scrollToGrandTotal" />
140
138
<see selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput =" 555.00" stepKey =" seeGrandTotal" />
141
139
</test >
Original file line number Diff line number Diff line change 123
123
</actionGroup >
124
124
125
125
<!-- Assert refunded Grand Total on frontend -->
126
- <amOnPage url =" {{StorefrontCustomerDashboardPage.url}}" stepKey =" onAccountPage" />
127
- <waitForPageLoad stepKey =" waitForPage" />
126
+ <actionGroup ref =" StorefrontOpenMyAccountPageActionGroup" stepKey =" onAccountPage" />
128
127
<scrollTo selector =" {{StorefrontCustomerResentOrdersSection.blockResentOrders}}" stepKey =" scrollToResent" />
129
128
<click selector =" {{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey =" clickOnOrder" />
130
129
<waitForPageLoad stepKey =" waitForViewOrder" />
131
- <click selector =" {{StorefrontCustomerOrderSection.tabRefund}}" stepKey =" clickRefund" />
132
- <waitForPageLoad stepKey =" waitRefundsLoad" />
130
+ <actionGroup ref =" StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey =" clickRefund" />
133
131
<scrollTo selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey =" scrollToGrandTotal" />
134
132
<see selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput =" 110.00" stepKey =" seeGrandTotal" />
135
133
Original file line number Diff line number Diff line change 116
116
</actionGroup >
117
117
118
118
<!-- Assert refunded Grand Total on frontend -->
119
- <amOnPage url =" {{StorefrontCustomerDashboardPage.url}}" stepKey =" onAccountPage" />
120
- <waitForPageLoad stepKey =" waitForPage" />
119
+ <actionGroup ref =" StorefrontOpenMyAccountPageActionGroup" stepKey =" onAccountPage" />
121
120
<scrollTo selector =" {{StorefrontCustomerResentOrdersSection.blockResentOrders}}" stepKey =" scrollToResent" />
122
121
<click selector =" {{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey =" clickOnOrder" />
123
122
<waitForPageLoad stepKey =" waitForViewOrder" />
124
- <click selector =" {{StorefrontCustomerOrderSection.tabRefund}}" stepKey =" clickRefund" />
125
- <waitForPageLoad stepKey =" waitRefundsLoad" />
123
+ <actionGroup ref =" StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey =" clickRefund" />
126
124
<scrollTo selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey =" scrollToGrandTotal" />
127
125
<see selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput =" 555.00" stepKey =" seeGrandTotal" />
128
126
</test >
Original file line number Diff line number Diff line change 115
115
</actionGroup >
116
116
117
117
<!-- Assert refunded Grand Total on frontend -->
118
- <amOnPage url =" {{StorefrontCustomerDashboardPage.url}}" stepKey =" onAccountPage" />
119
- <waitForPageLoad stepKey =" waitForPage" />
118
+ <actionGroup ref =" StorefrontOpenMyAccountPageActionGroup" stepKey =" onAccountPage" />
120
119
<scrollTo selector =" {{StorefrontCustomerResentOrdersSection.blockResentOrders}}" stepKey =" scrollToResent" />
121
120
<click selector =" {{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey =" clickOnOrder" />
122
121
<waitForPageLoad stepKey =" waitForViewOrder" />
123
- <click selector =" {{StorefrontCustomerOrderSection.tabRefund}}" stepKey =" clickRefund" />
124
- <waitForPageLoad stepKey =" waitRefundsLoad" />
122
+ <actionGroup ref =" StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey =" clickRefund" />
125
123
<scrollTo selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey =" scrollToGrandTotal" />
126
124
<see selector =" {{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput =" 555.00" stepKey =" seeGrandTotal" />
127
125
</test >
You can’t perform that action at this time.
0 commit comments