|
88 | 88 | </after>
|
89 | 89 |
|
90 | 90 | <!-- Check to make sure that the configurable product shows up as in stock -->
|
91 |
| - <amOnPage url="/{{ApiConfigurableProduct.urlKey}}2.html" stepKey="goToConfigProductPage"/> |
92 |
| - <waitForPageLoad stepKey="waitForStoreFrontLoad"/> |
93 |
| - <see stepKey="checkForOutOfStock" selector="{{StorefrontProductInfoMainSection.stockIndication}}" userInput="IN STOCK"/> |
| 91 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToConfigProductPage"/> |
| 92 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStoreFrontLoad"/> |
| 93 | + <actionGroup ref="StorefrontCheckProductStockStatus" stepKey="checkForOutOfStock"> |
| 94 | + <argument name="productUrlKey" value="$$createConfigProduct.custom_attributes[url_key]$$"/> |
| 95 | + <argument name="productName" value="$$createConfigProduct.name$$"/> |
| 96 | + </actionGroup> |
94 | 97 |
|
95 | 98 | <!-- Find the first simple product that we just created using the product grid and go to its page-->
|
96 | 99 | <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="visitAdminProductPage"/>
|
|
102 | 105 | <actionGroup ref="AdminProductGridSectionClickFirstRowActionGroup" stepKey="clickOnProductPage"/>
|
103 | 106 |
|
104 | 107 | <!-- Edit the quantity of the simple first product as 0 -->
|
105 |
| - <fillField selector="{{AdminProductFormSection.productQuantity}}" userInput="0" stepKey="fillProductQuantity"/> |
| 108 | + <actionGroup ref="AdminFillProductQtyOnProductFormActionGroup" stepKey="fillProductQuantity"> |
| 109 | + <argument name="productQty" value="0"/> |
| 110 | + </actionGroup> |
106 | 111 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSaveProduct"/>
|
107 | 112 |
|
108 | 113 | <!-- Check to make sure that the configurable product shows up as in stock -->
|
109 |
| - <amOnPage url="/{{ApiConfigurableProduct.urlKey}}2.html" stepKey="goToConfigProductPage2"/> |
110 |
| - <waitForPageLoad stepKey="waitForStoreFrontLoad2"/> |
111 |
| - <see stepKey="checkForOutOfStock2" selector="{{StorefrontProductInfoMainSection.stockIndication}}" userInput="IN STOCK"/> |
| 114 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToConfigProductPage2"/> |
| 115 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStoreFrontLoad2"/> |
| 116 | + <actionGroup ref="StorefrontCheckProductStockStatus" stepKey="checkForOutOfStock2"> |
| 117 | + <argument name="productUrlKey" value="$$createConfigProduct.custom_attributes[url_key]$$"/> |
| 118 | + <argument name="productName" value="$$createConfigProduct.name$$"/> |
| 119 | + </actionGroup> |
112 | 120 |
|
113 | 121 | <!-- Find the second simple product that we just created using the product grid and go to its page-->
|
114 | 122 | <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="visitAdminProductPage2"/>
|
|
120 | 128 | <actionGroup ref="AdminProductGridSectionClickFirstRowActionGroup" stepKey="clickOnProductPage2"/>
|
121 | 129 |
|
122 | 130 | <!-- Edit the quantity of the second simple product as 0 -->
|
123 |
| - <fillField selector="{{AdminProductFormSection.productQuantity}}" userInput="0" stepKey="fillProductQuantity2"/> |
| 131 | + <actionGroup ref="AdminFillProductQtyOnProductFormActionGroup" stepKey="fillProductQuantity2"> |
| 132 | + <argument name="productQty" value="0"/> |
| 133 | + </actionGroup> |
124 | 134 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSaveProduct2"/>
|
125 | 135 |
|
126 | 136 | <!-- Check to make sure that the configurable product shows up as out of stock -->
|
127 |
| - <amOnPage url="/{{ApiConfigurableProduct.urlKey}}2.html" stepKey="goToConfigProductPage3"/> |
128 |
| - <waitForPageLoad stepKey="waitForStoreFrontLoad3"/> |
129 |
| - <see stepKey="checkForOutOfStock3" selector="{{StorefrontProductInfoMainSection.stockIndication}}" userInput="OUT OF STOCK"/> |
| 137 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToConfigProductPage3"/> |
| 138 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStoreFrontLoad3"/> |
| 139 | + <actionGroup ref="StorefrontCheckProductStockStatus" stepKey="checkForOutOfStock3"> |
| 140 | + <argument name="productUrlKey" value="$$createConfigProduct.custom_attributes[url_key]$$"/> |
| 141 | + <argument name="productName" value="$$createConfigProduct.name$$"/> |
| 142 | + <argument name="stockStatus" value="OUT OF STOCK"/> |
| 143 | + </actionGroup> |
130 | 144 | </test>
|
131 | 145 | </tests>
|
0 commit comments