|
86 | 86 | <magentoCron groups="index" stepKey="reindexInvalidatedIndices"/> |
87 | 87 | </after> |
88 | 88 |
|
89 | | - <!-- Check to make sure that the configurable product shows up as in stock --> |
90 | | - <amOnPage url="/{{ApiConfigurableProduct.urlKey}}2.html" stepKey="goToConfigProductPage"/> |
91 | | - <waitForPageLoad stepKey="waitForStoreFrontLoad"/> |
92 | | - <see stepKey="checkForOutOfStock" selector="{{StorefrontProductInfoMainSection.stockIndication}}" userInput="IN STOCK"/> |
| 89 | + <!-- Check to make sure that the configurable product shows up as in stock --><!--<amOnPage url="/{{ApiConfigurableProduct.urlKey}}2.html" stepKey="goToConfigProductPage"/>--> |
| 90 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToConfigProductPage"/> |
| 91 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStoreFrontLoad"/> |
| 92 | + <actionGroup ref="StorefrontCheckProductStockStatus" stepKey="checkForOutOfStock"> |
| 93 | + <argument name="productUrlKey" value="$createConfigProduct.custom_attributes[url_key]$"/> |
| 94 | + <argument name="productName" value="$createConfigProduct.name$"/> |
| 95 | + <argument name="stockStatus" value="IN STOCK"/> |
| 96 | + </actionGroup> |
93 | 97 |
|
94 | 98 | <!-- Delete the first simple product --> |
95 | 99 | <actionGroup stepKey="deleteProduct1" ref="DeleteProductBySkuActionGroup"> |
96 | 100 | <argument name="sku" value="{{ApiSimpleOne.sku}}"/> |
97 | 101 | </actionGroup> |
98 | 102 |
|
99 | 103 | <!-- Check to make sure that the configurable product shows up as in stock --> |
100 | | - <amOnPage url="/{{ApiConfigurableProduct.urlKey}}2.html" stepKey="goToConfigProductPage2"/> |
101 | | - <waitForPageLoad stepKey="waitForStoreFrontLoad2"/> |
102 | | - <see stepKey="checkForOutOfStock2" selector="{{StorefrontProductInfoMainSection.stockIndication}}" userInput="IN STOCK"/> |
| 104 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToConfigProductPage2"/> |
| 105 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStoreFrontLoad2"/> |
| 106 | + <actionGroup ref="StorefrontCheckProductStockStatus" stepKey="checkForOutOfStock2"> |
| 107 | + <argument name="productUrlKey" value="$createConfigProduct.custom_attributes[url_key]$"/> |
| 108 | + <argument name="productName" value="$createConfigProduct.name$"/> |
| 109 | + <argument name="stockStatus" value="IN STOCK"/> |
| 110 | + </actionGroup> |
103 | 111 |
|
104 | 112 | <!-- Find the second simple product that we just created using the product grid and go to its page--> |
105 | 113 | <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="visitAdminProductPage2"/> |
|
115 | 123 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSaveProduct2"/> |
116 | 124 |
|
117 | 125 | <!-- Check to make sure that the configurable product shows up as out of stock --> |
118 | | - <amOnPage url="/{{ApiConfigurableProduct.urlKey}}2.html" stepKey="goToConfigProductPage3"/> |
119 | | - <waitForPageLoad stepKey="waitForStoreFrontLoad3"/> |
120 | | - <see stepKey="checkForOutOfStock3" selector="{{StorefrontProductInfoMainSection.stockIndication}}" userInput="OUT OF STOCK"/> |
| 126 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToConfigProductPage3"/> |
| 127 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStoreFrontLoad3"/> |
| 128 | + <actionGroup ref="StorefrontCheckProductStockStatus" stepKey="checkForOutOfStock3"> |
| 129 | + <argument name="productUrlKey" value="$createConfigProduct.custom_attributes[url_key]$"/> |
| 130 | + <argument name="productName" value="$createConfigProduct.name$"/> |
| 131 | + <argument name="stockStatus" value="OUT OF STOCK"/> |
| 132 | + </actionGroup> |
121 | 133 | </test> |
122 | 134 | </tests> |
0 commit comments