<?xml version="1.0" encoding="UTF-8"?>
    <!--
     /**
      * Copyright © Magento, Inc. All rights reserved.
      * See COPYING.txt for license details.
      */
    -->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="StorefrontAssertCurrencySymbolOnCategoryPageActionGroup">
        <annotations>
            <description>Assert price and currency of product on storefront category page and shopping options</description>
        </annotations>
        <arguments>
            <argument name="productName" type="string"/>
            <argument name="currencySymbol" type="string"/>
            <argument name="productPrice" type="string"/>
        </arguments>
        <waitForElementVisible selector="{{StorefrontCategoryProductSection.productCurrencyByProductName(productName,currencySymbol)}}" stepKey="assertCurrencySymbolByProductName"/>
        <waitForElementVisible selector="{{StorefrontCategoryProductSection.productPriceByProductName(productName,productPrice)}}" stepKey="assertPriceByProductName"/>
        <conditionalClick selector="{{StorefrontCategoryProductSection.priceDropdown}}" dependentSelector="{{StorefrontCategoryProductSection.priceBlockShoppingOptions}}" visible="false" stepKey="openPriceDropdown"/>
        <waitForElementVisible selector="{{StorefrontCategoryProductSection.filterOptionCurrencySymbol(currencySymbol)}}" stepKey="assertCurrencySymbolInShoppingOptions"/>
    </actionGroup>
</actionGroups>
