|
31 | 31 | <!-- Enable payment method one of "Check/Money Order" and shipping method one of "Flat Rate" -->
|
32 | 32 | <magentoCLI command="config:set {{enabledCheckMoneyOrder.label}} {{enabledCheckMoneyOrder.value}}" stepKey="enableCheckMoneyOrder"/>
|
33 | 33 | <createData entity="FlatRateShippingMethodConfig" stepKey="enableFlatRate"/>
|
34 |
| - |
35 |
| - <!-- Create Order --> |
36 |
| - <actionGroup ref="navigateToNewOrderPageExistingCustomer" stepKey="navigateToNewOrderPage"> |
37 |
| - <argument name="customer" value="$createCustomer$"/> |
38 |
| - </actionGroup> |
39 |
| - <actionGroup ref="addSimpleProductToOrder" stepKey="addSecondProduct"> |
40 |
| - <argument name="product" value="$createProduct$"/> |
41 |
| - <argument name="productQty" value="2"/> |
42 |
| - </actionGroup> |
43 |
| - <actionGroup ref="fillOrderCustomerInformation" stepKey="fillCustomerInfo"> |
44 |
| - <argument name="customer" value="$createCustomer$"/> |
45 |
| - <argument name="address" value="US_Address_TX"/> |
46 |
| - </actionGroup> |
47 |
| - <actionGroup ref="orderSelectFlatRateShipping" stepKey="selectFlatRate"/> |
48 |
| - <click selector="{{OrdersGridSection.submitOrder}}" stepKey="submitOrder"/> |
49 |
| - <waitForPageLoad stepKey="waitForSubmitOrderPage"/> |
50 |
| - <see stepKey="seeSuccessMessageForOrder" userInput="You created the order."/> |
51 |
| - |
52 |
| - <!-- Create Invoice --> |
53 |
| - <actionGroup ref="StartCreateInvoiceFromOrderPage" stepKey="startInvoice"/> |
54 |
| - <click selector="{{AdminInvoiceMainActionsSection.submitInvoice}}" stepKey="clickSubmitInvoice"/> |
55 |
| - <waitForElementVisible selector="{{AdminMessagesSection.successMessage}}" stepKey="waitForMessageAppears"/> |
56 |
| - <see selector="{{AdminMessagesSection.successMessage}}" userInput="The invoice has been created." stepKey="seeInvoiceCreateSuccess"/> |
57 | 34 | </before>
|
58 | 35 | <after>
|
59 | 36 | <!-- Delete data -->
|
|
62 | 39 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
|
63 | 40 | <actionGroup ref="logout" stepKey="logout"/>
|
64 | 41 | </after>
|
| 42 | + <!-- Create Order --> |
| 43 | + <actionGroup ref="navigateToNewOrderPageExistingCustomer" stepKey="navigateToNewOrderPage"> |
| 44 | + <argument name="customer" value="$createCustomer$"/> |
| 45 | + </actionGroup> |
| 46 | + <actionGroup ref="addSimpleProductToOrder" stepKey="addSecondProduct"> |
| 47 | + <argument name="product" value="$createProduct$"/> |
| 48 | + <argument name="productQty" value="2"/> |
| 49 | + </actionGroup> |
| 50 | + <actionGroup ref="fillOrderCustomerInformation" stepKey="fillCustomerInfo"> |
| 51 | + <argument name="customer" value="$createCustomer$"/> |
| 52 | + <argument name="address" value="US_Address_TX"/> |
| 53 | + </actionGroup> |
| 54 | + <actionGroup ref="orderSelectFlatRateShipping" stepKey="selectFlatRate"/> |
| 55 | + <click selector="{{OrdersGridSection.submitOrder}}" stepKey="submitOrder"/> |
| 56 | + <waitForPageLoad stepKey="waitForSubmitOrderPage"/> |
| 57 | + <see stepKey="seeSuccessMessageForOrder" userInput="You created the order."/> |
| 58 | + |
| 59 | + <!-- Create Invoice --> |
| 60 | + <actionGroup ref="StartCreateInvoiceFromOrderPage" stepKey="startInvoice"/> |
| 61 | + <click selector="{{AdminInvoiceMainActionsSection.submitInvoice}}" stepKey="clickSubmitInvoice"/> |
| 62 | + <waitForElementVisible selector="{{AdminMessagesSection.successMessage}}" stepKey="waitForMessageAppears"/> |
| 63 | + <see selector="{{AdminMessagesSection.successMessage}}" userInput="The invoice has been created." stepKey="seeInvoiceCreateSuccess"/> |
65 | 64 |
|
66 | 65 | <!-- Go to Sales > Orders > find out placed order and open -->
|
67 | 66 | <grabTextFrom selector="|Order # (\d+)|" stepKey="grabOrderId" />
|
|
128 | 127 | <click selector="{{StorefrontCustomerOrderSection.tabRefund}}" stepKey="clickRefund"/>
|
129 | 128 | <waitForPageLoad stepKey="waitRefundsLoad"/>
|
130 | 129 | <scrollTo selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey="scrollToGrandTotal"/>
|
131 |
| - <see selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput="110.00" stepKey="seeGrandTotal"/> |
| 130 | + <see selector="{{AdminCreateCreditMemoStoreCreditTest.xml |
| 131 | +.grandTotalRefund}}" userInput="110.00" stepKey="seeGrandTotal"/> |
132 | 132 |
|
133 | 133 | <!-- Assert product Qty decreased after CreditMemo -->
|
134 |
| - <actionGroup ref="AdminAssertProductQtyChangedAfterCreditMemoActionGroup" stepKey="assertQtyDecreased"> |
135 |
| - <argument name="product" value="$createProduct$"/> |
136 |
| - <argument name="changedQty" value="776"/> |
| 134 | + <actionGroup ref="AdminAssertProductQtyInGridActionGroup" stepKey="assertQtyDecreased"> |
| 135 | + <argument name="productSku" value="$createProduct.sku$"/> |
| 136 | + <argument name="expectedQty" value="776"/> |
137 | 137 | </actionGroup>
|
138 | 138 |
|
139 | 139 | <!--Assert refund in refunds grid-->
|
|
0 commit comments