Skip to content

Commit f067066

Browse files
committed
MC-40417: Unexpected behavior when updating a Product with a Customizable Option (File) in the Wish List
1 parent 4a90c8a commit f067066

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
<annotations>
1313
<description>Updates the provided Product to the Wish List from the Storefront Product page. Validates that the Success Message is present and correct.</description>
1414
</annotations>
15-
<arguments>
16-
<argument name="productVar"/>
17-
</arguments>
1815
<see selector="{{StorefrontCustomerWishlistSection.successMsg}}" userInput="{{productVar.name}} has been updated in your Wish List." stepKey="addProductToWishlistSeeProductNameAddedToWishlist"/>
1916
</actionGroup>
2017
</actionGroups>
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88

99
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11-
<test name="StorefrontAddSimpleProductWithCustomizableOptionsToWishlistTest">
11+
<test name="StorefrontAddSimpleProductWithCustomizableFileOptionToWishlistTest">
1212
<annotations>
1313
<stories value="Wishlist"/>
14-
<title value="Add simple product with customizable options to wishlist"/>
15-
<description value="Add simple Product with customizable options to Wishlist and verify customizable options are preserved"/>
14+
<title value="Add simple product with customizable file option to wishlist"/>
15+
<description value="Add simple Product with customizable file option to Wishlist and verify customizable options are preserved"/>
1616
<severity value="CRITICAL"/>
17+
<testCaseId value="MC-41040"/>
1718
<useCaseId value="MC-40417"/>
1819
<group value="wishlist"/>
1920
</annotations>
2021
<before>
2122
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
22-
<createData entity="_defaultCategory" stepKey="createCategory"/>
2323
<createData entity="SimpleProduct2" stepKey="createProduct">
2424
<field key="price">100.00</field>
2525
</createData>
@@ -28,10 +28,9 @@
2828
</updateData>
2929
</before>
3030
<after>
31+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
3132
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
32-
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
3333
<deleteData createDataKey="createProduct" stepKey="deleteProduct1"/>
34-
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
3534
</after>
3635

3736
<!-- Login as a customer -->
@@ -40,8 +39,8 @@
4039
</actionGroup>
4140

4241
<!-- Open Product page -->
43-
<actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="openProductFromCategory">
44-
<argument name="productUrlKey" value="$createProduct.custom_attributes[url_key]$"/>
42+
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPage">
43+
<argument name="productUrl" value="$createProduct.custom_attributes[url_key]$"/>
4544
</actionGroup>
4645
<attachFile userInput="adobe-base.jpg" selector="{{StorefrontProductInfoMainSection.addLinkFileUploadFile(ProductOptionFile.title)}}" stepKey="fillUploadFile"/>
4746

0 commit comments

Comments
 (0)