<?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="AssertStorefrontProductDetailPageTierPriceWithCurrencyActionGroup">
        <arguments>
            <argument name="tierProductPriceDiscountQuantity" type="string"/>
            <argument name="productPriceWithAppliedTierPriceDiscount" type="string"/>
            <argument name="productSavedPricePercent" type="string"/>
            <argument name="index" type="string"/>

        </arguments>
        <grabTextFrom selector="{{StorefrontProductInfoMainSection.tierPriceWithIndex(index)}}" stepKey="tierPriceText"/>
        <assertEquals stepKey="assertTierPriceTextOnProductPage">
            <expectedResult type="string">Buy {{tierProductPriceDiscountQuantity}} for €{{productPriceWithAppliedTierPriceDiscount}} each and save {{productSavedPricePercent}}%</expectedResult>
            <actualResult type="variable">tierPriceText</actualResult>
        </assertEquals>
    </actionGroup>
</actionGroups>
