|
138 | 138 | </actionGroup>
|
139 | 139 |
|
140 | 140 | <!-- Open Configurable Product page -->
|
141 |
| - <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openConfigurableProductPage"> |
| 141 | + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openConfigurableProductPage1"> |
142 | 142 | <argument name="productUrl" value="$createConfigurableProduct.custom_attributes[url_key]$"/>
|
143 | 143 | </actionGroup>
|
144 | 144 |
|
145 |
| - <!-- Add Configurable product to the wishlist --> |
146 |
| - <actionGroup ref="StorefrontCustomerAddConfigurableProductQuantityAndAddToWishListActionGroup" stepKey="addConfigurableProductToWishlist"> |
| 145 | + <!-- Add Configurable product to the wishlist 1 --> |
| 146 | + <actionGroup ref="StorefrontCustomerAddConfigurableProductQuantityAndAddToWishListActionGroup" stepKey="addConfigurableProductToWishlist1"> |
| 147 | + <argument name="productVar" value="$createConfigurableProduct$"/> |
| 148 | + <argument name="quantity" value="10"/> |
| 149 | + </actionGroup> |
| 150 | + |
| 151 | + <!-- Open Configurable Product page --> |
| 152 | + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openConfigurableProductPage2"> |
| 153 | + <argument name="productUrl" value="$createConfigurableProduct.custom_attributes[url_key]$"/> |
| 154 | + </actionGroup> |
| 155 | + |
| 156 | + <!-- Add Configurable product to the wishlist 2 --> |
| 157 | + <actionGroup ref="StorefrontCustomerAddConfigurableProductQuantityAndAddToWishListActionGroup" stepKey="addConfigurableProductToWishlist2"> |
147 | 158 | <argument name="productVar" value="$createConfigurableProduct$"/>
|
148 | 159 | <argument name="quantity" value="100"/>
|
149 | 160 | <argument name="option" value="$$getConfigAttributeOption1.value$$" />
|
150 | 161 | </actionGroup>
|
151 | 162 |
|
| 163 | + <!-- Assert Configurable product is present in wishlist --> |
| 164 | + <actionGroup ref="AssertProductQuantityInWishlistActionGroup" stepKey="assertConfigurableProductPresent1"> |
| 165 | + <argument name="productName" value="$createConfigurableProduct.name$"/> |
| 166 | + <argument name="productQuantity" value="10"/> |
| 167 | + </actionGroup> |
| 168 | + |
| 169 | + <!-- Assert Configurable product is present in wishlist --> |
| 170 | + <actionGroup ref="AssertProductQuantityInWishlistActionGroup" stepKey="assertConfigurableProductPresent2"> |
| 171 | + <argument name="productName" value="$createConfigurableProduct.name$"/> |
| 172 | + <argument name="productQuantity" value="100"/> |
| 173 | + </actionGroup> |
| 174 | + |
| 175 | + <!-- Go to Configurable PDP from Wishlist --> |
| 176 | + <actionGroup ref="StorefrontCustomerAccessProductFromWishlistActionGroup" stepKey="goToConfigurableProductPage"> |
| 177 | + <argument name="productVar" value="$createConfigurableProduct.name$"/> |
| 178 | + <argument name="quantity" value="10"/> |
| 179 | + </actionGroup> |
| 180 | + |
| 181 | + <!-- Add Configurable product to the wishlist 3 --> |
| 182 | + <actionGroup ref="StorefrontCustomerAddConfigurableProductQuantityAndAddToWishListActionGroup" stepKey="addConfigurableProductToWishlist3"> |
| 183 | + <argument name="productVar" value="$createConfigurableProduct$"/> |
| 184 | + <argument name="quantity" value="10"/> |
| 185 | + </actionGroup> |
| 186 | + |
| 187 | + <!-- Assert Configurable product is present in wishlist 3 --> |
| 188 | + <actionGroup ref="AssertProductQuantityInWishlistActionGroup" stepKey="assertConfigurableProductPresent3"> |
| 189 | + <argument name="productName" value="$createConfigurableProduct.name$"/> |
| 190 | + <argument name="productQuantity" value="10"/> |
| 191 | + </actionGroup> |
| 192 | + |
| 193 | + <!-- Edit wishlist Configurable no options product --> |
| 194 | + <actionGroup ref="StorefrontCustomerUpdateWishlistItemActionGroup" stepKey="clickEditWishlistItem1"> |
| 195 | + <argument name="productName" value="$createConfigurableProduct.name$"/> |
| 196 | + </actionGroup> |
| 197 | + |
| 198 | + <!-- Update Configurable product in wishlist from product page --> |
| 199 | + <actionGroup ref="StorefrontCustomerUpdateProductInWishlistActionGroup" stepKey="updateProductWithOptionInWishlist1"> |
| 200 | + <argument name="productVar" value="$createConfigurableProduct$"/> |
| 201 | + </actionGroup> |
| 202 | + |
| 203 | + <!-- Assert Configurable product is present in wishlist 4 --> |
| 204 | + <actionGroup ref="AssertProductQuantityInWishlistActionGroup" stepKey="assertConfigurableProductPresent4"> |
| 205 | + <argument name="productName" value="$createConfigurableProduct.name$"/> |
| 206 | + <argument name="productQuantity" value="10"/> |
| 207 | + </actionGroup> |
| 208 | + |
| 209 | + <!-- Assert Configurable product is present in wishlist 5 --> |
| 210 | + <actionGroup ref="AssertProductQuantityInWishlistActionGroup" stepKey="assertConfigurableProductPresent5"> |
| 211 | + <argument name="productName" value="$createConfigurableProduct.name$"/> |
| 212 | + <argument name="productQuantity" value="100"/> |
| 213 | + </actionGroup> |
| 214 | + |
152 | 215 | <!-- Open Bundle Product page -->
|
153 | 216 | <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openBundleProductPage">
|
154 | 217 | <argument name="productUrl" value="$createBundleProduct.custom_attributes[url_key]$"/>
|
|
172 | 235 | </actionGroup>
|
173 | 236 |
|
174 | 237 | <!-- Edit wishlist Simple product -->
|
175 |
| - <actionGroup ref="StorefrontCustomerUpdateWishlistItemActionGroup" stepKey="clickEditWishlistItem"> |
| 238 | + <actionGroup ref="StorefrontCustomerUpdateWishlistItemActionGroup" stepKey="clickEditWishlistItem2"> |
176 | 239 | <argument name="productName" value="$createProduct.name$"/>
|
177 | 240 | </actionGroup>
|
178 | 241 |
|
179 | 242 | <!-- Update Simple product in wishlist from product page -->
|
180 |
| - <actionGroup ref="StorefrontCustomerUpdateProductInWishlistActionGroup" stepKey="updateProductWithOptionInWishlist"> |
| 243 | + <actionGroup ref="StorefrontCustomerUpdateProductInWishlistActionGroup" stepKey="updateProductWithOptionInWishlist2"> |
181 | 244 | <argument name="productVar" value="$createProduct$"/>
|
182 | 245 | </actionGroup>
|
183 | 246 |
|
|
216 | 279 | <argument name="optionName" value="$$createBundleOption1_1.value$$" />
|
217 | 280 | </actionGroup>
|
218 | 281 |
|
219 |
| - <!-- Assert Configurable product is present in wishlist --> |
220 |
| - <actionGroup ref="AssertProductQuantityInWishlistActionGroup" stepKey="assertConfigurableProductPresent"> |
221 |
| - <argument name="productName" value="$createConfigurableProduct.name$"/> |
222 |
| - <argument name="productQuantity" value="100"/> |
223 |
| - </actionGroup> |
224 |
| - |
225 |
| - <!-- Go to Configurable PDP from Wishlist --> |
226 |
| - <actionGroup ref="StorefrontCustomerAccessProductFromWishlistActionGroup" stepKey="goToConfigurableProductPage"> |
227 |
| - <argument name="productVar" value="$createConfigurableProduct.name$"/> |
228 |
| - <argument name="quantity" value="100"/> |
229 |
| - </actionGroup> |
230 |
| - |
231 | 282 | </test>
|
232 | 283 | </tests>
|
0 commit comments