Skip to content

Commit 865bf66

Browse files
committed
added StorefrontCheckRefundHGrandTotalActionGroup
1 parent d796127 commit 865bf66

5 files changed

+17
-6
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@
134134
<click selector="{{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey="clickOnOrder"/>
135135
<waitForPageLoad stepKey="waitForViewOrder"/>
136136
<actionGroup ref="StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey="clickRefund"/>
137-
<scrollTo selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey="scrollToGrandTotal"/>
138-
<see selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput="555.00" stepKey="seeGrandTotal"/>
137+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="scrollToGrandTotal"/>
138+
<actionGroup ref="StorefrontCheckRefundHGrandTotalActionGroup" stepKey="seeGrandTotal">
139+
<argument name="grandTotal" value="555.00"/>
140+
</actionGroup>
139141
</test>
140142
</tests>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
</actionGroup>
9595

9696
<actionGroup ref="StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey="clickRefund"/>
97-
<see selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput="555.00" stepKey="seeGrandTotal"/>
97+
<actionGroup ref="StorefrontCheckRefundHGrandTotalActionGroup" stepKey="seeGrandTotal">
98+
<argument name="grandTotal" value="555.00"/>
99+
</actionGroup>
98100
</test>
99101
</tests>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@
129129
<waitForPageLoad stepKey="waitForViewOrder"/>
130130
<actionGroup ref="StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey="clickRefund"/>
131131
<scrollTo selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey="scrollToGrandTotal"/>
132-
<see selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput="110.00" stepKey="seeGrandTotal"/>
132+
133+
<actionGroup ref="StorefrontCheckRefundHGrandTotalActionGroup" stepKey="seeGrandTotal">
134+
<argument name="grandTotal" value="110.00"/>
135+
</actionGroup>
133136

134137
<!-- Assert product Qty decreased after CreditMemo -->
135138
<actionGroup ref="AdminAssertProductQtyInGridActionGroup" stepKey="assertQtyDecreased">

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@
125125
<waitForPageLoad stepKey="waitForViewOrder"/>
126126
<actionGroup ref="StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey="clickRefund"/>
127127
<scrollTo selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey="scrollToGrandTotal"/>
128-
<see selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput="555.00" stepKey="seeGrandTotal"/>
128+
<actionGroup ref="StorefrontCheckRefundHGrandTotalActionGroup" stepKey="seeGrandTotal">
129+
<argument name="grandTotal" value="555.00"/>
130+
</actionGroup>
129131
</test>
130132
</tests>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@
121121
<waitForPageLoad stepKey="waitForViewOrder"/>
122122
<actionGroup ref="StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey="clickRefund"/>
123123
<scrollTo selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey="scrollToGrandTotal"/>
124-
<see selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput="555.00" stepKey="seeGrandTotal"/>
124+
<actionGroup ref="StorefrontCheckRefundHGrandTotalActionGroup" stepKey="seeGrandTotal">
125+
<argument name="grandTotal" value="555.00"/>
126+
</actionGroup>
125127
</test>
126128
</tests>

0 commit comments

Comments
 (0)