File tree Expand file tree Collapse file tree 7 files changed +67
-16
lines changed
app/code/Magento/Wishlist/Test/Mftf Expand file tree Collapse file tree 7 files changed +67
-16
lines changed Original file line number Diff line number Diff line change
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 =" AssertMoveProductToWishListSuccessMessageActionGroup" >
12
+ <annotations >
13
+ <description >Moves a product from the cart to the wishlist.</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" productName" type =" string" />
17
+ </arguments >
18
+ <click selector =" {{CheckoutCartProductSection.moveToWishlistByProductName(productName)}}" stepKey =" moveToWishlist" />
19
+ <waitForPageLoad stepKey =" waitForMove" />
20
+ <see userInput =" {{productName}} has been moved to your wish list." selector =" {{CheckoutCartMessageSection.successMessage}}" stepKey =" assertSuccess" />
21
+ </actionGroup >
22
+ </actionGroups >
Original file line number Diff line number Diff line change
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 =" AssertProductIsPresentInWishListActionGroup" >
12
+ <annotations >
13
+ <description >Go to storefront customer wishlist page and assert product name and price is present.</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" productName" type =" string" />
17
+ <argument name =" productPrice" type =" string" />
18
+ </arguments >
19
+ <amOnPage url =" {{StorefrontCustomerWishlistPage.url}}" stepKey =" goToWishList" />
20
+ <waitForPageLoad stepKey =" waitForWishList" />
21
+ <waitForElement selector =" {{StorefrontCustomerWishlistProductSection.ProductTitleByName(productName)}}" time =" 30" stepKey =" assertProductName" />
22
+ <see userInput =" {{productPrice}}" selector =" {{StorefrontCustomerWishlistProductSection.ProductPriceByName(productName)}}" stepKey =" assertProductPrice" />
23
+ </actionGroup >
24
+ </actionGroups >
Original file line number Diff line number Diff line change 8
8
9
9
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
- <actionGroup name =" AssertMoveProductToWishListSuccessMessageActionGroup " >
11
+ <actionGroup name =" AssertProductDetailsInWishlistActionGroup " >
12
12
<annotations >
13
- <description >Moves a product from the cart to the wishlist.</description >
13
+ <description >Assert product name and price in wishlist on hover .</description >
14
14
</annotations >
15
15
<arguments >
16
16
<argument name =" productName" type =" string" />
17
+ <argument name =" label" type =" string" />
18
+ <argument name =" labelValue" type =" string" />
17
19
</arguments >
18
- <click selector =" {{CheckoutCartProductSection.moveToWishlistByProductName(productName)}}" stepKey =" moveToWishlist" />
19
- <waitForPageLoad stepKey =" waitForMove" />
20
- <see userInput =" {{productName}} has been moved to your wish list." selector =" {{CheckoutCartMessageSection.successMessage}}" stepKey =" assertSuccess" />
20
+ <moveMouseOver selector =" {{StorefrontCustomerWishlistProductSection.ProductInfoByName(productName)}}" stepKey =" moveMouseOverProductInfo" />
21
+ <seeElement selector =" {{StorefrontCustomerWishlistProductSection.ProductAddToCartByName(productName)}}" stepKey =" seeAddToCart" />
22
+ <seeElement selector =" {{StorefrontCustomerWishlistProductSection.ProductImageByName(productName)}}" stepKey =" seeImage" />
23
+ <moveMouseOver selector =" {{StorefrontCustomerWishlistProductSection.productSeeDetailsByName(productName)}}" stepKey =" moveMouseOverProductDetails" />
24
+ <see userInput =" {{label}}" selector =" {{StorefrontCustomerWishlistProductSection.productSeeDetailsLabelByName(productName)}}" stepKey =" seeLabel" />
25
+ <see userInput =" {{labelValue}}" selector =" {{StorefrontCustomerWishlistProductSection.productSeeDetailsValueByName(productName)}}" stepKey =" seeLabelValue" />
21
26
</actionGroup >
22
27
</actionGroups >
Original file line number Diff line number Diff line change 144
144
<actionGroup ref =" clickViewAndEditCartFromMiniCart" stepKey =" selectViewAndEditCart" />
145
145
146
146
<!-- Assert move product to wishlist success message -->
147
- <actionGroup ref =" AssertMoveProductToWishListSuccessMessage " stepKey =" moveToWishlist" >
147
+ <actionGroup ref =" AssertMoveProductToWishListSuccessMessageActionGroup " stepKey =" moveToWishlist" >
148
148
<argument name =" productName" value =" $$createConfigProduct.name$$" />
149
149
</actionGroup >
150
150
151
151
<!-- Assert product is present in wishlist -->
152
- <actionGroup ref =" AssertProductIsPresentInWishList " stepKey =" assertProductPresent" >
152
+ <actionGroup ref =" AssertProductIsPresentInWishListActionGroup " stepKey =" assertProductPresent" >
153
153
<argument name =" productName" value =" $$createConfigProduct.name$$" />
154
154
<argument name =" productPrice" value =" $20.00" />
155
155
</actionGroup >
156
156
157
157
<!-- Assert product details in Wishlist -->
158
- <actionGroup ref =" AssertProductDetailsInWishlist " stepKey =" assertProductDetails" >
158
+ <actionGroup ref =" AssertProductDetailsInWishlistActionGroup " stepKey =" assertProductDetails" >
159
159
<argument name =" productName" value =" $$createConfigProduct.name$$" />
160
160
<argument name =" label" value =" $$createConfigProductAttribute.default_value$$" />
161
161
<argument name =" labelValue" value =" $$getConfigAttributeOption2.label$$" />
Original file line number Diff line number Diff line change 87
87
<actionGroup ref =" clickViewAndEditCartFromMiniCart" stepKey =" selectViewAndEditCart" />
88
88
89
89
<!-- Assert move product to wishlist success message -->
90
- <actionGroup ref =" AssertMoveProductToWishListSuccessMessage " stepKey =" moveToWishlist" >
90
+ <actionGroup ref =" AssertMoveProductToWishListSuccessMessageActionGroup " stepKey =" moveToWishlist" >
91
91
<argument name =" productName" value =" $$createBundleProduct.name$$" />
92
92
</actionGroup >
93
93
94
94
<!-- Assert product is present in wishlist -->
95
- <actionGroup ref =" AssertProductIsPresentInWishList " stepKey =" assertProductPresent" >
95
+ <actionGroup ref =" AssertProductIsPresentInWishListActionGroup " stepKey =" assertProductPresent" >
96
96
<argument name =" productName" value =" $$createBundleProduct.name$$" />
97
97
<argument name =" productPrice" value =" $100.00" />
98
98
</actionGroup >
99
99
100
100
<!-- Assert product details in Wishlist -->
101
- <actionGroup ref =" AssertProductDetailsInWishlist " stepKey =" assertProductDetails" >
101
+ <actionGroup ref =" AssertProductDetailsInWishlistActionGroup " stepKey =" assertProductDetails" >
102
102
<argument name =" productName" value =" $$createBundleProduct.name$$" />
103
103
<argument name =" label" value =" $$createBundleOption1_1.title$$" />
104
104
<argument name =" labelValue" value =" $$simpleProduct1.sku$$ $100.00" />
Original file line number Diff line number Diff line change 78
78
<actionGroup ref =" clickViewAndEditCartFromMiniCart" stepKey =" selectViewAndEditCart" />
79
79
80
80
<!-- Assert move product to wishlist success message -->
81
- <actionGroup ref =" AssertMoveProductToWishListSuccessMessage " stepKey =" moveToWishlist" >
81
+ <actionGroup ref =" AssertMoveProductToWishListSuccessMessageActionGroup " stepKey =" moveToWishlist" >
82
82
<argument name =" productName" value =" $$createBundleProduct.name$$" />
83
83
</actionGroup >
84
84
85
85
<!-- Assert product is present in wishlist -->
86
- <actionGroup ref =" AssertProductIsPresentInWishList " stepKey =" assertProductPresent" >
86
+ <actionGroup ref =" AssertProductIsPresentInWishListActionGroup " stepKey =" assertProductPresent" >
87
87
<argument name =" productName" value =" $$createBundleProduct.name$$" />
88
88
<argument name =" productPrice" value =" $101.23" />
89
89
</actionGroup >
90
90
91
91
<!-- Assert product details in Wishlist -->
92
- <actionGroup ref =" AssertProductDetailsInWishlist " stepKey =" assertProductDetails" >
92
+ <actionGroup ref =" AssertProductDetailsInWishlistActionGroup " stepKey =" assertProductDetails" >
93
93
<argument name =" productName" value =" $$createBundleProduct.name$$" />
94
94
<argument name =" label" value =" $$createBundleOption1_1.title$$" />
95
95
<argument name =" labelValue" value =" $$simpleProduct1.sku$$ $100.00" />
Original file line number Diff line number Diff line change 53
53
<actionGroup ref =" clickViewAndEditCartFromMiniCart" stepKey =" selectViewAndEditCart" />
54
54
55
55
<!-- Assert move product to wishlist success message -->
56
- <actionGroup ref =" AssertMoveProductToWishListSuccessMessage " stepKey =" moveToWishlist" >
56
+ <actionGroup ref =" AssertMoveProductToWishListSuccessMessageActionGroup " stepKey =" moveToWishlist" >
57
57
<argument name =" productName" value =" $$createProduct.name$$" />
58
58
</actionGroup >
59
59
60
60
<!-- Assert product is present in wishlist -->
61
- <actionGroup ref =" AssertProductIsPresentInWishList " stepKey =" assertProductPresent" >
61
+ <actionGroup ref =" AssertProductIsPresentInWishListActionGroup " stepKey =" assertProductPresent" >
62
62
<argument name =" productName" value =" $$createProduct.name$$" />
63
63
<argument name =" productPrice" value =" $$createProduct.price$$" />
64
64
</actionGroup >
You can’t perform that action at this time.
0 commit comments