Skip to content

Commit 71315f4

Browse files
authored
ENGCOM-6565: MFTF: Extract Action Groups to separate files for dev/tests #26322
2 parents 467e032 + 1ae73fc commit 71315f4

File tree

4 files changed

+56
-6
lines changed

4 files changed

+56
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
<!-- Check configurable product in wishlist -->
12+
<actionGroup name="StorefrontCustomerCheckConfigurableProductInWishlistActionGroup">
13+
<annotations>
14+
<description>Validates that the provided Configurable Product and Product Option is present in the Storefront Wish List.</description>
15+
</annotations>
16+
<arguments>
17+
<argument name="productVar"/>
18+
<argument name="optionProductVar"/>
19+
</arguments>
20+
21+
<waitForElement selector="{{StorefrontCustomerWishlistProductSection.ProductTitleByName(productVar.name)}}" time="30" stepKey="assertWishlistProductName"/>
22+
<see userInput="${{optionProductVar.price}}.00" selector="{{StorefrontCustomerWishlistProductSection.ProductPriceByName(productVar.name)}}" stepKey="AssertWishlistProductPrice"/>
23+
<moveMouseOver selector="{{StorefrontCustomerWishlistProductSection.ProductInfoByName(productVar.name)}}" stepKey="wishlistMoveMouseOverProduct"/>
24+
<seeElement selector="{{StorefrontCustomerWishlistProductSection.ProductAddToCartByName(productVar.name)}}" stepKey="AssertWishlistAddToCart"/>
25+
<seeElement selector="{{StorefrontCustomerWishlistProductSection.ProductImageByName(productVar.name)}}" stepKey="AssertWishlistProductImage"/>
26+
</actionGroup>
27+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
<!-- Check configurable product in wishlist sidebar -->
12+
<actionGroup name="StorefrontCustomerCheckConfigurableProductInWishlistSidebarActionGroup">
13+
<annotations>
14+
<description>Validates that the provided Configurable Product and Product Option is present in the Storefront Wish List sidebar.</description>
15+
</annotations>
16+
<arguments>
17+
<argument name="productVar"/>
18+
<argument name="optionProductVar"/>
19+
</arguments>
20+
21+
<waitForElement selector="{{StorefrontCustomerWishlistSidebarSection.ProductTitleByName(productVar.name)}}" time="30" stepKey="assertWishlistSidebarProductName"/>
22+
<see userInput="${{optionProductVar.price}}.00" selector="{{StorefrontCustomerWishlistSidebarSection.ProductPriceByName(productVar.name)}}" stepKey="AssertWishlistSidebarProductPrice"/>
23+
<seeElement selector="{{StorefrontCustomerWishlistSidebarSection.ProductAddToCartByName(productVar.name)}}" stepKey="AssertWishlistSidebarAddToCart"/>
24+
<seeElement selector="{{StorefrontCustomerWishlistSidebarSection.ProductImageByName(productVar.name)}}" stepKey="AssertWishlistSidebarProductImage"/>
25+
</actionGroup>
26+
</actionGroups>
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
-->
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10-
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<!-- Check configurable product in wishlist -->
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1211
<actionGroup name="StorefrontCustomerCheckConfigurableProductInWishlist">
1312
<annotations>
1413
<description>Validates that the provided Configurable Product and Product Option is present in the Storefront Wish List.</description>
@@ -24,8 +23,6 @@
2423
<seeElement selector="{{StorefrontCustomerWishlistProductSection.ProductAddToCartByName(productVar.name)}}" stepKey="AssertWishlistAddToCart"/>
2524
<seeElement selector="{{StorefrontCustomerWishlistProductSection.ProductImageByName(productVar.name)}}" stepKey="AssertWishlistProductImage"/>
2625
</actionGroup>
27-
28-
<!-- Check configurable product in wishlist sidebar -->
2926
<actionGroup name="StorefrontCustomerCheckConfigurableProductInWishlistSidebar">
3027
<annotations>
3128
<description>Validates that the provided Configurable Product and Product Option is present in the Storefront Wish List sidebar.</description>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/ConfigurableProductWishlist/Test/EndToEndB2CLoggedInUserTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" after="wishlistClickConfigurableProduct" stepKey="wishlistAddConfigurableProductToWishlist">
1818
<argument name="productVar" value="$$createConfigProduct$$"/>
1919
</actionGroup>
20-
<actionGroup ref="StorefrontCustomerCheckConfigurableProductInWishlist" after="wishlistAddConfigurableProductToWishlist" stepKey="wishlistCheckConfigurableProductInWishlist">
20+
<actionGroup ref="StorefrontCustomerCheckConfigurableProductInWishlistActionGroup" after="wishlistAddConfigurableProductToWishlist" stepKey="wishlistCheckConfigurableProductInWishlist">
2121
<argument name="productVar" value="$$createConfigProduct$$"/>
2222
<argument name="optionProductVar" value="$$createConfigChildProduct1$$"/>
2323
</actionGroup>
24-
<actionGroup ref="StorefrontCustomerCheckConfigurableProductInWishlistSidebar" after="wishlistCheckConfigurableProductInWishlist" stepKey="wishlistCheckConfigurableProductInWishlistSidebar">
24+
<actionGroup ref="StorefrontCustomerCheckConfigurableProductInWishlistSidebarActionGroup" after="wishlistCheckConfigurableProductInWishlist" stepKey="wishlistCheckConfigurableProductInWishlistSidebar">
2525
<argument name="productVar" value="$$createConfigProduct$$"/>
2626
<argument name="optionProductVar" value="$$createConfigChildProduct1$$"/>
2727
</actionGroup>

0 commit comments

Comments
 (0)