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