Skip to content

Commit 5ea8857

Browse files
committed
ACP2E-1784: updated mftf
1 parent 846109a commit 5ea8857

File tree

3 files changed

+42
-3
lines changed

3 files changed

+42
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontCustomerAccessGroupedProductFromWishlistActionGroup">
12+
<annotations>
13+
<description>Go to Grouped product page from Wish List. Validates that the quantity is the same from Wish List.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="productVar" type="string"/>
17+
<argument name="quantity" type="string"/>
18+
<argument name="index" defaultValue="1" type="string"/>
19+
</arguments>
20+
21+
<click selector="{{StorefrontCustomerWishlistSection.productLinkByProductName(productVar)}}" stepKey="goToProductPageFromWishlist"/>
22+
<waitForPageLoad stepKey="waitForPageLoad"/>
23+
<seeInField selector="{{StorefrontProductInfoMainSection.groupedProductsAssociatedProductQuantity(index)}}" userInput="{{quantity}}" stepKey="assertProductQuantity"/>
24+
</actionGroup>
25+
</actionGroups>

app/code/Magento/Wishlist/Test/Mftf/ActionGroup/StorefrontCustomerAccessProductFromWishlistActionGroup.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
<arguments>
1616
<argument name="productVar" type="string"/>
1717
<argument name="quantity" type="string"/>
18-
<argument name="index" defaultValue="1" type="string"/>
1918
</arguments>
2019

2120
<click selector="{{StorefrontCustomerWishlistSection.productLinkByProductName(productVar)}}" stepKey="goToProductPageFromWishlist"/>
2221
<waitForPageLoad stepKey="waitForPageLoad"/>
23-
<seeInField selector="{{StorefrontProductInfoMainSection.groupedProductsAssociatedProductQuantity(index)}}" userInput="{{quantity}}" stepKey="assertProductQuantity"/>
22+
<seeInField selector="{{StorefrontProductInfoMainSection.qtyByClassAndQuantity(quantity)}}" userInput="{{quantity}}" stepKey="assertProductQuantity"/>
2423
</actionGroup>
2524
</actionGroups>

app/code/Magento/Wishlist/Test/Mftf/Test/StorefrontAddProductsWithCustomizedQuantitiesTest.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
</actionGroup>
188188

189189
<!-- Go to Grouped PDP from Wishlist -->
190-
<actionGroup ref="StorefrontCustomerAccessProductFromWishlistActionGroup" stepKey="goToGroupedProductPage">
190+
<actionGroup ref="StorefrontCustomerAccessGroupedProductFromWishlistActionGroup" stepKey="goToGroupedProductPage">
191191
<argument name="productVar" value="$createGroupedProduct.name$"/>
192192
<argument name="quantity" value="100"/>
193193
</actionGroup>
@@ -198,5 +198,20 @@
198198
<argument name="quantity" value="100"/>
199199
</actionGroup>
200200

201+
202+
<!-- Go to Bundle PDP from Wishlist -->
203+
<actionGroup ref="StorefrontCustomerAccessProductFromWishlistActionGroup" stepKey="goToGroupedProductPage">
204+
<argument name="productVar" value="$createBundleProduct.name$"/>
205+
<argument name="quantity" value="100"/>
206+
</actionGroup>
207+
208+
<!-- Add Bundle product to the wishlist -->
209+
<actionGroup ref="StorefrontCustomerAddBundleProductQuantityAndAddToWishListActionGroup" stepKey="readdBundleProductToWishlist">
210+
<argument name="productVar" value="$createBundleProduct$"/>
211+
<argument name="parentQuantity" value="100"/>
212+
<argument name="childQuantity" value="100" />
213+
<argument name="optionName" value="$$createBundleOption1_1.value$$" />
214+
</actionGroup>
215+
201216
</test>
202217
</tests>

0 commit comments

Comments
 (0)