|
29 | 29 | </createData>
|
30 | 30 | </before>
|
31 | 31 | <after>
|
32 |
| - <!--Clear Filters--> |
33 |
| - <actionGroup ref="AdminClearFiltersActionGroup" stepKey="ClearFiltersAfter"/> |
| 32 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="ClearFiltersAfter"/> |
34 | 33 | <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clearOrderListingFilters"/>
|
35 | 34 | <deleteData createDataKey="createSimpleCategory" stepKey="deletePreReqCategory"/>
|
36 | 35 | <deleteData createDataKey="createSimpleProduct" stepKey="deletePreReqSimpleProduct"/>
|
37 |
| - <!--Logout from customer account--> |
38 | 36 | <amOnPage url="{{StorefrontCustomerLogoutPage.url}}" stepKey="logoutCustomerOne"/>
|
39 | 37 | <waitForPageLoad stepKey="waitLogoutCustomerOne"/>
|
40 | 38 | <deleteData createDataKey="createSimpleUsCustomer" stepKey="deleteCustomer"/>
|
41 | 39 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
42 | 40 | </after>
|
43 |
| - <!--Step1. Login as admin. Go to Catalog > Products page. Filtering *prod1*. Open *prod1* to edit--> |
44 | 41 | <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin" />
|
45 |
| - <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="filterGroupedProductOptions"> |
46 |
| - <argument name="product" value="$$createSimpleProduct$$"/> |
| 42 | + <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToProductEditPage"> |
| 43 | + <argument name="productId" value="$$createSimpleProduct.id$$"/> |
47 | 44 | </actionGroup>
|
48 |
| - <!-- Step2. Update product Advanced Inventory Setting. |
49 |
| - Set *Qty Uses Decimals* to *Yes* and *Enable Qty Increments* to *Yes* and *Qty Increments* to *2.14*. --> |
50 |
| - <actionGroup ref="OpenProductForEditByClickingRowXColumnYInProductGridActionGroup" stepKey="openProduct"/> |
| 45 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="filterGroupedProductOptions"/> |
| 46 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="openProduct"/> |
51 | 47 | <actionGroup ref="AdminClickOnAdvancedInventoryLinkActionGroup" stepKey="clickOnAdvancedInventoryLink"/>
|
52 | 48 | <actionGroup ref="AdminSetQtyUsesDecimalsConfigActionGroup" stepKey="setQtyUsesDecimalsConfig">
|
53 | 49 | <argument name="value" value="Yes"/>
|
|
62 | 58 | <argument name="qty" value="2.14"/>
|
63 | 59 | </actionGroup>
|
64 | 60 | <actionGroup ref="AdminSubmitAdvancedInventoryFormActionGroup" stepKey="clickOnDoneButton"/>
|
65 |
| - |
66 |
| - <!--Step3. Save the product--> |
67 | 61 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickOnSaveButton"/>
|
68 |
| - <!--Step4. Open *Customer view* (Go to *Store Front*). Open *prod1* page (Find via search and click on product name) --> |
69 |
| - <!--Step5. Log in to Storefront as Customer--> |
70 | 62 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="signUpNewUser">
|
71 | 63 | <argument name="Customer" value="$$createSimpleUsCustomer$$"/>
|
72 | 64 | </actionGroup>
|
73 |
| - <!--Step6. Go to product page--> |
74 |
| - <amOnPage url="$$createSimpleProduct.custom_attributes[url_key]$$.html" stepKey="navigateToSimpleProductPage"/> |
75 |
| - <waitForPageLoad stepKey="waitForCatalogPageLoad"/> |
76 |
| - <!--Step7. Add Product to Shopping Cart--> |
| 65 | + <actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="navigateToSimpleProductPage"> |
| 66 | + <argument name="productUrlKey" value="$$createSimpleProduct.custom_attributes[url_key]$$"/> |
| 67 | + </actionGroup> |
| 68 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCatalogPageLoad"/> |
77 | 69 | <actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">
|
78 | 70 | <argument name="productName" value="$$createSimpleProduct.name$$"/>
|
79 | 71 | </actionGroup>
|
80 | 72 |
|
81 |
| - <!--Step8. Navigate to checkout--> |
82 | 73 | <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="openCheckoutPage"/>
|
83 |
| - <!--Step9. Click next button to open payment section--> |
84 | 74 | <actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="clickNext"/>
|
85 |
| - <!--Step10. Click place order--> |
86 | 75 | <actionGroup ref="ClickPlaceOrderActionGroup" stepKey="placeOrder"/>
|
87 |
| - <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/> |
| 76 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="grabOrderNumber"/> |
88 | 77 | <actionGroup ref="StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey="openOrderViewPage"/>
|
89 | 78 | <grabFromCurrentUrl regex="~/order_id/(\d+)/~" stepKey="grabOrderId"/>
|
90 |
| - |
91 |
| - <!--Step11. Go to admin Order page for newly created order--> |
92 | 79 | <actionGroup ref="AdminOpenOrderByEntityIdActionGroup" stepKey="filterOrdersGridById">
|
93 | 80 | <argument name="entityId" value="$grabOrderId"/>
|
94 | 81 | </actionGroup>
|
95 | 82 |
|
96 |
| - <click selector="{{AdminOrderDetailsMainActionsSection.ship}}" stepKey="clickShipAction"/> |
97 |
| - <click selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="clickSubmitShipment"/> |
98 |
| - |
| 83 | + <actionGroup ref="GoToShipmentIntoOrderActionGroup" stepKey="clickShipAction"/> |
| 84 | + <actionGroup ref="SubmitShipmentIntoOrderActionGroup" stepKey="clickSubmitShipment"/> |
99 | 85 | <actionGroup ref="StorefrontNavigateToCustomerOrdersHistoryPageActionGroup" stepKey="goToOrderHistoryPage"/>
|
100 |
| - <!--Step12. Go to Customer Order Shipment Page and Checking the correctness of displayed Qty Shipped --> |
101 |
| - <amOnPage url="{{StorefrontCustomerOrderShipmentPage.url({$grabOrderNumber})}}" stepKey="amOnOrderShipmentPage"/> |
102 |
| - <waitForPageLoad time="30" stepKey="waitForOrderShipmentsPageLoad"/> |
| 86 | + <actionGroup ref="StorefrontOpenOrderShipmentsTabByOrderIdActionGroup" stepKey="amOnOrderShipmentPage"> |
| 87 | + <argument name="orderId" value="$grabOrderId"/> |
| 88 | + </actionGroup> |
| 89 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForOrderShipmentsPageLoad"/> |
103 | 90 | <actionGroup ref="AssertStorefrontOrderShipmentsQtyShippedActionGroup" stepKey="verifyAssertOrderShipments">
|
104 | 91 | <argument name="expectedQtyShipped" value="2.14"/>
|
105 | 92 | </actionGroup>
|
|
0 commit comments