|
20 | 20 | <group value="sales"/>
|
21 | 21 | </annotations>
|
22 | 22 | <before>
|
23 |
| - |
| 23 | + <magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/> |
24 | 24 | <createData entity="_defaultCategory" stepKey="createCategory"/>
|
25 | 25 | <createData entity="SimpleProduct" stepKey="createProduct">
|
26 | 26 | <requiredEntity createDataKey="createCategory"/>
|
27 | 27 | </createData>
|
28 |
| - |
29 |
| - <!-- Customer is created --> |
30 | 28 | <createData entity="Simple_US_Customer" stepKey="createCustomer"/>
|
31 |
| - <!-- Login to Admin --> |
32 | 29 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
33 |
| - |
34 | 30 | </before>
|
35 | 31 | <after>
|
36 | 32 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
37 |
| - <!-- Delete products --> |
38 | 33 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
|
39 |
| - |
40 |
| - <!-- Delete Category --> |
41 | 34 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
|
42 |
| - |
43 |
| - <!-- Delete Customer --> |
44 | 35 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
|
45 | 36 | </after>
|
46 | 37 |
|
47 |
| - <!-- Create new customer order --> |
48 |
| - <comment userInput="Create new customer order" stepKey="createNewCustomerOrderComment"/> |
49 |
| - <actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="navigateToNewOrderWithExistingCustomer"> |
50 |
| - <argument name="customer" value="$$createCustomer$$"/> |
51 |
| - </actionGroup> |
52 |
| - <!-- Add Simple product to order --> |
53 |
| - <comment userInput="Add Simple product to order" stepKey="addSimpleProductToOrderComment"/> |
54 |
| - <actionGroup ref="AddSimpleProductToOrderActionGroup" stepKey="addSimpleProductToTheOrder"> |
55 |
| - <argument name="product" value="$$createProduct$$"/> |
| 38 | + <!-- Create order, invoice, shipment and credit memo --> |
| 39 | + <createData entity="CustomerCart" stepKey="createCustomerCart"> |
| 40 | + <requiredEntity createDataKey="createCustomer"/> |
| 41 | + </createData> |
| 42 | + <createData entity="CustomerCartItem" stepKey="addCartItem"> |
| 43 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 44 | + <requiredEntity createDataKey="createProduct"/> |
| 45 | + </createData> |
| 46 | + <createData entity="CustomerAddressInformation" stepKey="addCustomerOrderAddress"> |
| 47 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 48 | + </createData> |
| 49 | + <updateData createDataKey="createCustomerCart" entity="CustomerOrderPaymentMethod" stepKey="createFirstOrder"> |
| 50 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 51 | + </updateData> |
| 52 | + <createData entity="Invoice" stepKey="invoiceOrder"> |
| 53 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 54 | + </createData> |
| 55 | + <createData entity="Shipment" stepKey="createShipment"> |
| 56 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 57 | + </createData> |
| 58 | + <createData entity="CreditMemo" stepKey="createCreditMemo"> |
| 59 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 60 | + </createData> |
| 61 | + |
| 62 | + <!-- Open Admin Order page --> |
| 63 | + <actionGroup ref="AdminOpenOrderViewPageByOrderIdActionGroup" stepKey="openOrder"> |
| 64 | + <argument name="orderId" value="$createCustomerCart.return$"/> |
56 | 65 | </actionGroup>
|
57 |
| - <!-- Select FlatRate shipping method --> |
58 |
| - <comment userInput="Select FlatRate shipping method" stepKey="selectFlatRateShippingMethodComment"/> |
59 |
| - <actionGroup ref="AdminSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShippingMethod"/> |
60 |
| - <!-- Submit order --> |
61 |
| - <comment userInput="Submit order" stepKey="submitOrderComment"/> |
62 |
| - <actionGroup ref="AdminOrderClickSubmitOrderActionGroup" stepKey="submitOrder" /> |
63 |
| - <!-- Verify order information --> |
64 |
| - <comment userInput="Verify order information" stepKey="verifyOrderInformationComment"/> |
65 |
| - <actionGroup ref="VerifyCreatedOrderInformationActionGroup" stepKey="verifyCreatedOrderInformation"/> |
66 |
| - <comment userInput="BIC workaround" stepKey="orderId"/> |
67 |
| - <grabTextFrom selector="|Order # (\d+)|" stepKey="orderNumber"/> |
68 | 66 |
|
69 | 67 | <!--Go to Comments history and switch to Information -->
|
70 | 68 | <click selector="{{AdminOrderDetailsOrderViewSection.commentsHistory}}" stepKey="goToCommentsHistory1"/>
|
|
74 | 72 | <!--Go to Comments history and don't see the error message -->
|
75 | 73 | <click selector="{{AdminOrderDetailsOrderViewSection.commentsHistory}}" stepKey="goToCommentsHistory2"/>
|
76 | 74 | <waitForPageLoad stepKey="waitForCommentsHistoryPage"/>
|
77 |
| - <see userInput="Order Placed by Store Administrator" stepKey="seeMessageOrderCreatedByAdmin"/> |
| 75 | + <see userInput="Notes for this Order" stepKey="seeMessageNotesForThisOrder"/> |
78 | 76 | <dontSee userInput="A technical problem with the server created an error" stepKey="dontSeeTechnicalErrorMessageTwo"/>
|
79 |
| - |
80 | 77 | </test>
|
81 | 78 | </tests>
|
0 commit comments