-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Expand file tree
/
Copy pathAdminCheckingCreditMemoUpdateTotalsTest.xml
More file actions
80 lines (68 loc) · 4.11 KB
/
AdminCheckingCreditMemoUpdateTotalsTest.xml
File metadata and controls
80 lines (68 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
<test name="AdminCheckingCreditMemoTotalsTest">
<annotations>
<features value="CreditMemo"/>
<stories value="Create credit memo"/>
<title value="Checking Credit Memo Update Totals button"/>
<description value="Checking Credit Memo Update Totals button"/>
<severity value="MAJOR"/>
<testCaseId value="MC-18159"/>
<useCaseId value="MC-17003"/>
<group value="sales"/>
</annotations>
<before>
<createData entity="SimpleProduct2" stepKey="createSimpleProduct"/>
<createData entity="Simple_US_CA_Customer" stepKey="createCustomer"/>
<createData entity="CustomerCart" stepKey="createCustomerCart">
<requiredEntity createDataKey="createCustomer"/>
</createData>
<createData entity="CustomerCartItem" stepKey="addCartItem">
<requiredEntity createDataKey="createCustomerCart"/>
<requiredEntity createDataKey="createSimpleProduct"/>
</createData>
<createData entity="CustomerAddressInformation" stepKey="addCustomerOrderAddress">
<requiredEntity createDataKey="createCustomerCart"/>
</createData>
<updateData createDataKey="createCustomerCart" entity="CustomerOrderPaymentMethod" stepKey="sendCustomerPaymentInformation">
<requiredEntity createDataKey="createCustomerCart"/>
</updateData>
<createData entity="Invoice" stepKey="invoiceOrderOne">
<requiredEntity createDataKey="createCustomerCart"/>
</createData>
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
</before>
<after>
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
</after>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="createOrder"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="grabOrderId"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="startCreateInvoice"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="submitInvoice"/>
<actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="onOrderPage"/>
<actionGroup ref="AdminOrdersGridClearFiltersActionGroup" stepKey="clearFilters"/>
<grabTextFrom selector="{{AdminOrdersGridSection.orderIdByIncrementId($createCustomerCart.return$)}}" stepKey="getOrderId"/>
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="filterOrdersGridById">
<argument name="orderId" value="{$getOrderId}"/>
</actionGroup>
<grabFromCurrentUrl regex="~/order_id/(\d+)/~" stepKey="getOrderIdFromUrl"/>
<actionGroup ref="StartToCreateCreditMemoActionGroup" stepKey="startToCreateCreditMemo">
<argument name="orderId" value="{$getOrderIdFromUrl}"/>
</actionGroup>
<fillField selector="{{AdminCreditMemoTotalSection.refundShipping}}" userInput="0" stepKey="setRefundShipping"/>
<actionGroup ref="UpdateCreditMemoTotalsActionGroup" stepKey="updateCreditMemoTotals"/>
<actionGroup ref="SubmitCreditMemoActionGroup" stepKey="submitCreditMemo"/>
<click selector="{{AdminOrderDetailsOrderViewSection.creditMemos}}" stepKey="clickCreditMemosTab"/>
<waitForPageLoad stepKey="waitForCreditMemosGridToLoad"/>
<see selector="{{AdminOrderCreditMemosTabSection.gridRow('1')}}" userInput="$123" stepKey="seeCreditMemoInGrid"/>
</test>
</tests>