|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 |
| - <test name="ProductsQtyReturnAfterOrderCancelTest"> |
| 11 | + <test name=""> |
12 | 12 |
|
13 | 13 | <annotations>
|
14 | 14 | <features value="ConfigurableProduct"/>
|
|
23 | 23 |
|
24 | 24 | <before>
|
25 | 25 | <createData entity="ApiCategory" stepKey="createCategory"/>
|
26 |
| - <createData entity="ApiConfigurableProduct" stepKey="createConfigProduct"> |
| 26 | + <createData entity="BaseConfigurableProduct" stepKey="createConfigProduct"> |
27 | 27 | <requiredEntity createDataKey="createCategory"/>
|
| 28 | + <field key="quantity">1000</field> |
28 | 29 | </createData>
|
| 30 | + |
| 31 | + |
| 32 | + |
29 | 33 | <actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
|
30 | 34 | </before>
|
31 | 35 |
|
32 | 36 | <after>
|
33 |
| - <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
34 |
| - <deleteData createDataKey="createConfigProduct" stepKey="deleteConfigProduct"/> |
| 37 | + <!-- <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 38 | + <deleteData createDataKey="createConfigProduct" stepKey="deleteConfigProduct"/> --> |
35 | 39 | <actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
|
36 | 40 | </after>
|
37 | 41 |
|
38 | 42 | <actionGroup ref="AdminOpenCatalogProductPageActionGroup" stepKey="goToCatalogProductPage1"/>
|
39 | 43 |
|
40 |
| - <conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFiltersInitial"/> |
| 44 | + <actionGroup ref="ClearFiltersAdminProductGridActionGroup" stepKey="clickClearFiltersInitial"/> |
41 | 45 | <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProduct">
|
42 | 46 | <argument name="product" value="$$createConfigProduct$$"/>
|
43 | 47 | </actionGroup>
|
44 | 48 | <fillField selector="{{AdminProductFormSection.productQuantity}}" userInput="100" stepKey="changeProductQuantity"/>
|
45 |
| - <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveChanges"/> |
| 49 | + <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveChanges"/> |
| 50 | + |
| 51 | + <createData entity="GuestCart" stepKey="createGuestCart"/> |
| 52 | + <createData entity="SimpleFourCartItems" stepKey="addCartItem"> |
| 53 | + <requiredEntity createDataKey="createGuestCart"/> |
| 54 | + <requiredEntity createDataKey="createConfigProduct"/> |
| 55 | + </createData> |
| 56 | + <createData entity="GuestAddressInformation" stepKey="addGuestOrderAddress"> |
| 57 | + <requiredEntity createDataKey="createGuestCart"/> |
| 58 | + </createData> |
| 59 | + <updateData createDataKey="createGuestCart" entity="GuestOrderPaymentMethod" stepKey="sendGuestPaymentInformation"> |
| 60 | + <requiredEntity createDataKey="createGuestCart"/> |
| 61 | + </updateData> |
46 | 62 |
|
47 |
| - <amOnPage url="$$createConfigProduct.sku$$.html" stepKey="navigateToProductPage"/> |
| 63 | + <!-- <amOnPage url="$$createConfigProduct.sku$$.html" stepKey="navigateToProductPage"/> |
48 | 64 | <waitForPageLoad stepKey="waitForProductPage"/>
|
49 | 65 | <fillField selector="{{StorefrontProductInfoMainSection.qty}}" userInput="4" stepKey="fillQuantity"/>
|
50 | 66 |
|
|
63 | 79 | <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage" />
|
64 | 80 | </actionGroup>
|
65 | 81 |
|
66 |
| - <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/> |
| 82 | + <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/> --> |
67 | 83 |
|
68 | 84 | <actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
|
69 |
| - <argument name="orderId" value="$grabOrderNumber"/> |
| 85 | + <argument name="orderId" value="$createGuestCart.return$"/> |
70 | 86 | </actionGroup>
|
71 | 87 |
|
72 | 88 | <actionGroup ref="AdminOrderGridClickFirstRowActionGroup" stepKey="clickOrderRow"/>
|
|
75 | 91 | <click selector="{{AdminInvoiceItemsSection.updateQty}}" stepKey="updateQuantity"/>
|
76 | 92 | <waitForPageLoad stepKey="waitPageToBeLoaded"/>
|
77 | 93 | <actionGroup ref="AdminInvoiceClickSubmitActionGroup" stepKey="clickSubmitInvoice"/>
|
78 |
| - <click selector="{{AdminOrderDetailsMainActionsSection.ship}}" stepKey="clickShipAction"/> |
79 |
| - <waitForPageLoad stepKey="waitOrderDetailToLoad"/> |
80 |
| - <fillField selector="{{AdminShipmentItemsSection.itemQtyToShip('1')}}" userInput="1" stepKey="changeItemQtyToShip"/> |
81 |
| - <click selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="clickSubmitShipment"/> |
82 |
| - <waitForPageLoad stepKey="waitShipmentSectionToLoad"/> |
| 94 | + <!-- <click selector="{{AdminOrderDetailsMainActionsSection.ship}}" stepKey="clickShipAction"/> |
| 95 | + <waitForPageLoad stepKey="waitOrderDetailToLoad"/> --> |
| 96 | + <!-- <fillField selector="{{AdminShipmentItemsSection.itemQtyToShip('1')}}" userInput="1" stepKey="changeItemQtyToShip"/> --> |
| 97 | + <actionGroup ref="AdminCreateShipmentFromOrderPage" stepKey="clickSubmitShipment"> |
| 98 | + <argument name="Qty" value="1"/> |
| 99 | + <argument name="Number" value="111"/> |
| 100 | + </actionGroup> |
| 101 | + |
| 102 | + <!-- <click selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="clickSubmitShipment"/> |
| 103 | + <waitForPageLoad stepKey="waitShipmentSectionToLoad"/> --> |
83 | 104 | <actionGroup ref="CancelPendingOrderActionGroup" stepKey="cancelPendingOption">
|
84 | 105 | <argument name="orderStatus" value="Complete"/>
|
85 | 106 | </actionGroup>
|
|
0 commit comments