Skip to content

Commit b792c4d

Browse files
ENGCOM-8580: [MFTF] Adding AdminClickRefundOfflineOnNewMemoPageActionGroup #31323
- Merge Pull Request #31323 from AnnaAPak/magento2:adding-AdminClickRefundOfflineOnMemoDetailPageActionGroup - Merged commits: 1. 37e8487 2. 31eb859 3. 06b3b29
2 parents 1c3837c + 06b3b29 commit b792c4d

6 files changed

+29
-10
lines changed

app/code/Magento/Downloadable/Test/Mftf/Test/StorefrontAccountDownloadableProductLinkAfterPartialRefundTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
<argument name="rowNumber" value="1"/>
9898
</actionGroup>
9999

100-
<click selector="{{AdminCreditMemoTotalSection.submitRefundOffline}}" stepKey="clickRefundOffline"/>
101-
<waitForPageLoad stepKey="waitForResultPage"/>
100+
<actionGroup ref="AdminClickRefundOfflineOnNewMemoPageActionGroup" stepKey="clickRefundOffline"/>
101+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForResultPage"/>
102102

103103
<actionGroup ref="StorefrontNotAssertDownloadableProductLinkInCustomerAccountActionGroup" stepKey="dontSeeStorefrontMyAccountDownloadableProductsLink">
104104
<argument name="product" value="$$createDownloadableProduct$$"/>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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="AdminClickRefundOfflineOnNewMemoPageActionGroup">
12+
<annotations>
13+
<description>Click the Refund Offline button on the New Memo page</description>
14+
</annotations>
15+
<click selector="{{AdminCreditMemoTotalSection.submitRefundOffline}}" stepKey="clickRefundOffline"/>
16+
<waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccesMessage"/>
17+
<see selector="{{AdminMessagesSection.success}}" userInput="You created the credit memo." stepKey="seeSuccessMessage"/>
18+
</actionGroup>
19+
</actionGroups>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
</actionGroup>
8686

8787
<!-- On order's page click 'Refund offline' button -->
88-
<click selector="{{AdminCreditMemoTotalSection.submitRefundOffline}}" stepKey="clickRefundOffline"/>
89-
<waitForPageLoad stepKey="waitForResultPage"/>
88+
<actionGroup ref="AdminClickRefundOfflineOnNewMemoPageActionGroup" stepKey="clickRefundOffline"/>
89+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForResultPage"/>
9090

9191
<!-- Perform all assertions: assert refund success create message -->
9292
<see selector="{{AdminIndexManagementSection.successMessage}}" userInput="You created the credit memo." stepKey="assertRefundSuccessCreateMessage"/>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
</actionGroup>
7979

8080
<!-- On order's page click 'Refund offline' button -->
81-
<click selector="{{AdminCreditMemoTotalSection.submitRefundOffline}}" stepKey="clickRefundOffline"/>
82-
<waitForPageLoad stepKey="waitForResultPage"/>
81+
<actionGroup ref="AdminClickRefundOfflineOnNewMemoPageActionGroup" stepKey="clickRefundOffline"/>
82+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForResultPage"/>
8383

8484
<!-- Perform all assertions: assert refund success create message -->
8585
<waitForElementVisible selector="{{AdminIndexManagementSection.successMessage}}" stepKey="waitForSuccessMessage"/>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@
8888
</actionGroup>
8989

9090
<!-- On order's page click 'Refund offline' button -->
91-
<click selector="{{AdminCreditMemoTotalSection.submitRefundOffline}}" stepKey="clickRefundOffline"/>
92-
<waitForPageLoad stepKey="waitForResultPage"/>
91+
<actionGroup ref="AdminClickRefundOfflineOnNewMemoPageActionGroup" stepKey="clickRefundOffline"/>
92+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForResultPage"/>
9393

9494
<!-- Perform all assertions: assert refund success create message -->
9595
<see selector="{{AdminIndexManagementSection.successMessage}}" userInput="You created the credit memo." stepKey="assertRefundSuccessCreateMessage"/>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@
140140
<argument name="billingAddress" value="US_Address_TX"/>
141141
</actionGroup>
142142
<!--Submit credit memo-->
143-
<click selector="{{AdminCreditMemoTotalSection.submitRefundOffline}}" stepKey="clickRefundOffline" after="verifyOrderCreditMemoInformation"/>
144-
<see selector="{{AdminOrderDetailsMessagesSection.successMessage}}" userInput="You created the credit memo." stepKey="seeCreditMemoSuccess" after="clickRefundOffline"/>
143+
<actionGroup ref="AdminClickRefundOfflineOnNewMemoPageActionGroup" stepKey="clickRefundOffline" after="verifyOrderCreditMemoInformation"/>
144+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeCreditMemoSuccess" after="clickRefundOffline"/>
145145
<click selector="{{AdminOrderDetailsOrderViewSection.creditMemos}}" stepKey="clickOrderCreditMemosTab" after="seeCreditMemoSuccess"/>
146146
<waitForLoadingMaskToDisappear stepKey="waitForCreditMemoTabLoadingMask" after="clickOrderCreditMemosTab"/>
147147
<see selector="{{AdminOrderCreditMemosTabSection.gridRow('1')}}" userInput="{{Simple_US_Customer.firstname}}" stepKey="seeOrderCreditMemoInTabGrid" after="waitForCreditMemoTabLoadingMask"/>

0 commit comments

Comments
 (0)