|
| 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="StorefrontCustomerCheckConfigurableProductInWishlist"> |
| 12 | + <annotations> |
| 13 | + <description>Validates that the provided Configurable Product and Product Option is present in the Storefront Wish List.</description> |
| 14 | + </annotations> |
| 15 | + <arguments> |
| 16 | + <argument name="productVar"/> |
| 17 | + <argument name="optionProductVar"/> |
| 18 | + </arguments> |
| 19 | + |
| 20 | + <waitForElement selector="{{StorefrontCustomerWishlistProductSection.ProductTitleByName(productVar.name)}}" time="30" stepKey="assertWishlistProductName"/> |
| 21 | + <see userInput="${{optionProductVar.price}}.00" selector="{{StorefrontCustomerWishlistProductSection.ProductPriceByName(productVar.name)}}" stepKey="AssertWishlistProductPrice"/> |
| 22 | + <moveMouseOver selector="{{StorefrontCustomerWishlistProductSection.ProductInfoByName(productVar.name)}}" stepKey="wishlistMoveMouseOverProduct"/> |
| 23 | + <seeElement selector="{{StorefrontCustomerWishlistProductSection.ProductAddToCartByName(productVar.name)}}" stepKey="AssertWishlistAddToCart"/> |
| 24 | + <seeElement selector="{{StorefrontCustomerWishlistProductSection.ProductImageByName(productVar.name)}}" stepKey="AssertWishlistProductImage"/> |
| 25 | + </actionGroup> |
| 26 | + <actionGroup name="StorefrontCustomerCheckConfigurableProductInWishlistSidebar"> |
| 27 | + <annotations> |
| 28 | + <description>Validates that the provided Configurable Product and Product Option is present in the Storefront Wish List sidebar.</description> |
| 29 | + </annotations> |
| 30 | + <arguments> |
| 31 | + <argument name="productVar"/> |
| 32 | + <argument name="optionProductVar"/> |
| 33 | + </arguments> |
| 34 | + |
| 35 | + <waitForElement selector="{{StorefrontCustomerWishlistSidebarSection.ProductTitleByName(productVar.name)}}" time="30" stepKey="assertWishlistSidebarProductName"/> |
| 36 | + <see userInput="${{optionProductVar.price}}.00" selector="{{StorefrontCustomerWishlistSidebarSection.ProductPriceByName(productVar.name)}}" stepKey="AssertWishlistSidebarProductPrice"/> |
| 37 | + <seeElement selector="{{StorefrontCustomerWishlistSidebarSection.ProductAddToCartByName(productVar.name)}}" stepKey="AssertWishlistSidebarAddToCart"/> |
| 38 | + <seeElement selector="{{StorefrontCustomerWishlistSidebarSection.ProductImageByName(productVar.name)}}" stepKey="AssertWishlistSidebarProductImage"/> |
| 39 | + </actionGroup> |
| 40 | +</actionGroups> |
0 commit comments