Skip to content

Commit fe64579

Browse files
committed
Refactoring
1 parent 8727fb9 commit fe64579

5 files changed

+33
-32
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@
77
-->
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10-
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<actionGroup name="StorefrontCustomerShareWishlistActionGroup">
12-
<arguments>
13-
<argument name="email" type="string"/>
14-
<argument name="message" type="string"/>
15-
</arguments>
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontCustomerShareWishlistActionGroup" deprecated="Use StorefrontCustomerWishlistShareActionGroup">
12+
<!-- Deprecated due to Hardcoded WishList Data Using. 18-19 lines -->
13+
<annotations>
14+
<description>Shares the Wish List from the Storefront Wish List page. PLEASE NOTE: The details for sharing are Hardcoded using 'Wishlist'.</description>
15+
</annotations>
1616

1717
<click selector="{{StorefrontCustomerWishlistProductSection.productShareWishList}}" stepKey="clickMyWishListButton"/>
18-
<fillField userInput="{{email}}" selector="{{StorefrontCustomerWishlistShareSection.ProductShareWishlistEmail}}" stepKey="fillEmailsForShare"/>
19-
<fillField userInput="{{message}}" selector="{{StorefrontCustomerWishlistShareSection.ProductShareWishlistTextMessage}}" stepKey="fillShareMessage"/>
18+
<fillField userInput="{{Wishlist.shareInfo_emails}}" selector="{{StorefrontCustomerWishlistShareSection.ProductShareWishlistEmail}}" stepKey="fillEmailsForShare"/>
19+
<fillField userInput="{{Wishlist.shareInfo_message}}" selector="{{StorefrontCustomerWishlistShareSection.ProductShareWishlistTextMessage}}" stepKey="fillShareMessage"/>
2020
<click selector="{{StorefrontCustomerWishlistShareSection.ProductShareWishlistButton}}" stepKey="sendWishlist"/>
21+
<see selector="{{StorefrontCustomerWishlistProductSection.productSuccessShareMessage}}" userInput="Your wish list has been shared." stepKey="successMessage"/>
2122
</actionGroup>
2223
</actionGroups>

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

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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="StorefrontShareCustomerWishlistActionGroup">
12+
<arguments>
13+
<argument name="email" type="string"/>
14+
<argument name="message" type="string"/>
15+
</arguments>
16+
17+
<click selector="{{StorefrontCustomerWishlistProductSection.productShareWishList}}" stepKey="clickMyWishListButton"/>
18+
<fillField userInput="{{email}}" selector="{{StorefrontCustomerWishlistShareSection.ProductShareWishlistEmail}}" stepKey="fillEmailsForShare"/>
19+
<fillField userInput="{{message}}" selector="{{StorefrontCustomerWishlistShareSection.ProductShareWishlistTextMessage}}" stepKey="fillShareMessage"/>
20+
<click selector="{{StorefrontCustomerWishlistShareSection.ProductShareWishlistButton}}" stepKey="sendWishlist"/>
21+
</actionGroup>
22+
</actionGroups>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<argument name="productVar" value="$createProduct$"/>
4949
</actionGroup>
5050

51-
<actionGroup ref="StorefrontCustomerShareWishlistActionGroup" stepKey="shareWishlist">
51+
<actionGroup ref="StorefrontShareCustomerWishlistActionGroup" stepKey="shareWishlist">
5252
<argument name="email" value="{{Wishlist.shareInfo_emails}}"/>
5353
<argument name="message" value="{{Wishlist.shareInfo_message}}"/>
5454
</actionGroup>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" stepKey="addToWishlistProduct">
4141
<argument name="productVar" value="$createProduct$"/>
4242
</actionGroup>
43-
<actionGroup ref="StorefrontCustomerShareWishlistActionGroup" stepKey="shareWishList">
43+
<actionGroup ref="StorefrontShareCustomerWishlistActionGroup" stepKey="shareWishList">
4444
<argument name="email" value="{{notValidEmails.shareInfo_emails}}"/>
4545
<argument name="message" value="{{notValidEmails.shareInfo_message}}"/>
4646
</actionGroup>

0 commit comments

Comments
 (0)