<?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="StorefrontAssertProductDetailsInOrderSummaryActionGroup">
        <annotations>
            <description>Validates that the provided Product Name, Quantity and Price are present in the 'Order Summary' section on the Storefront Checkout page.</description>
        </annotations>
        <arguments>
            <argument name="productName" type="string"/>
            <argument name="qty" type="string"/>
            <argument name="price" type="string"/>
        </arguments>
        
        <see selector="{{CheckoutOrderSummarySection.productItemName}}" userInput="{{productName}}" stepKey="seeProductName"/>
        <see selector="{{CheckoutOrderSummarySection.productItemQty}}" userInput="{{qty}}" stepKey="seeProductQty"/>
        <see selector="{{CheckoutOrderSummarySection.productItemPrice}}" userInput="{{price}}" stepKey="seeProductPrice"/>
    </actionGroup>
</actionGroups>
