|
6 | 6 | */
|
7 | 7 | -->
|
8 | 8 |
|
9 |
| -<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
10 | 11 | <test name="AdminPanelIsFrozenIfStorefrontIsOpenedViaCustomerViewTest">
|
11 | 12 | <annotations>
|
12 | 13 | <features value="Customer"/>
|
|
23 | 24 | <createData entity="SimpleProduct" stepKey="createSimpleProduct">
|
24 | 25 | <requiredEntity createDataKey="createSimpleCategory"/>
|
25 | 26 | </createData>
|
26 |
| - <actionGroup ref="AdminLoginActionGroup" stepKey="login"/> |
| 27 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="login"/> |
27 | 28 | </before>
|
28 | 29 | <after>
|
29 | 30 | <deleteData createDataKey="createSimpleCategory" stepKey="deleteCategory"/>
|
30 | 31 | <deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
|
31 | 32 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
32 | 33 | </after>
|
33 |
| - <actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="navigateToNewOrderPage"> |
34 |
| - <argument name="customer" value="$simpleCustomer$"/> |
35 |
| - </actionGroup> |
36 |
| - <actionGroup ref="AddSimpleProductToOrderActionGroup" stepKey="addSecondProduct"> |
37 |
| - <argument name="product" value="$createSimpleProduct$"/> |
38 |
| - </actionGroup> |
39 |
| - <actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillCustomerInfo"> |
40 |
| - <argument name="customer" value="$simpleCustomer$"/> |
41 |
| - <argument name="address" value="US_Address_TX"/> |
42 |
| - </actionGroup> |
43 |
| - <actionGroup ref="OrderSelectFlatRateShippingActionGroup" stepKey="selectFlatRate"/> |
44 |
| - <actionGroup ref="AdminSubmitOrderActionGroup" stepKey="submitOrder"/> |
45 |
| - <grabTextFrom selector="|Order # (\d+)|" stepKey="getOrderId"/> |
46 |
| - |
47 |
| - <actionGroup ref="StartCreateInvoiceFromOrderPageActionGroup" stepKey="startCreateInvoice"/> |
48 |
| - <actionGroup ref="SubmitInvoiceActionGroup" stepKey="submitInvoice"/> |
49 |
| - <actionGroup ref="GoToShipmentIntoOrderActionGroup" stepKey="goToShipment"/> |
50 |
| - <actionGroup ref="SubmitShipmentIntoOrderActionGroup" stepKey="submitShipment"/> |
51 |
| - |
52 |
| - <!--Create Credit Memo--> |
53 |
| - <actionGroup ref="StartToCreateCreditMemoActionGroup" stepKey="startToCreateCreditMemo"> |
54 |
| - <argument name="orderId" value="{$getOrderId}"/> |
55 |
| - </actionGroup> |
56 |
| - <actionGroup ref="SubmitCreditMemoActionGroup" stepKey="submitCreditMemo"/> |
| 34 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="navigateToNewOrderPage"/> |
| 35 | + <createData entity="CustomerCart" stepKey="createCustomerCart"> |
| 36 | + <requiredEntity createDataKey="simpleCustomer"/> |
| 37 | + </createData> |
| 38 | + <createData entity="CustomerCartItem" stepKey="addSecondProduct"> |
| 39 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 40 | + <requiredEntity createDataKey="createSimpleProduct"/> |
| 41 | + </createData> |
| 42 | + <createData entity="CustomerAddressInformation" stepKey="fillCustomerInfo"> |
| 43 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 44 | + </createData> |
| 45 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectFlatRate"/> |
| 46 | + <updateData createDataKey="createCustomerCart" entity="CustomerOrderPaymentMethod" stepKey="submitOrder"> |
| 47 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 48 | + </updateData> |
| 49 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="getOrderId"/> |
| 50 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="startCreateInvoice"/> |
| 51 | + <createData entity="Invoice" stepKey="submitInvoice"> |
| 52 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 53 | + </createData> |
| 54 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToShipment"/> |
| 55 | + <createData entity="Shipment" stepKey="submitShipment"> |
| 56 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 57 | + </createData> |
| 58 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="startToCreateCreditMemo"/> |
| 59 | + <createData entity="CreditMemo" stepKey="submitCreditMemo"> |
| 60 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 61 | + </createData> |
57 | 62 |
|
58 | 63 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="logInCustomer">
|
59 | 64 | <argument name="Customer" value="$$simpleCustomer$$"/>
|
60 | 65 | </actionGroup>
|
61 | 66 | <actionGroup ref="StorefrontCustomerGoToSidebarMenu" stepKey="goToMyOrdersPage">
|
62 | 67 | <argument name="menu" value="My Orders"/>
|
63 | 68 | </actionGroup>
|
64 |
| - <click selector="{{StorefrontCustomerOrderSection.viewOrder}}" stepKey="clickViewOrder"/> |
65 |
| - <click selector="{{StorefrontCustomerOrderViewSection.printOrderLink}}" stepKey="clickPrintOrderLink"/> |
66 |
| - <waitForPageLoad stepKey="waitPageReload"/> |
| 69 | + <actionGroup ref="StorefrontClickViewOrderLinkOnMyOrdersPageActionGroup" stepKey="clickViewOrder"/> |
| 70 | + <actionGroup ref="StorefrontClickPrintOrderLinkOnViewOrderPageActionGroup" stepKey="clickPrintOrderLink"/> |
| 71 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitPageReload"/> |
67 | 72 | <switchToWindow stepKey="switchToWindow"/>
|
68 | 73 | <switchToPreviousTab stepKey="switchToPreviousTab"/>
|
69 |
| - |
70 | 74 | <actionGroup ref="StorefrontCustomerGoToSidebarMenu" stepKey="goToAddressBook">
|
71 | 75 | <argument name="menu" value="Address Book"/>
|
72 | 76 | </actionGroup>
|
|
0 commit comments