<?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="CheckShippingMethodInCheckoutActionGroup">
        <annotations>
            <description>Validates that the provided Shipping Method Name is present on the Storefront Checkout page under the 'Shipping Method' section.</description>
        </annotations>
        <arguments>
            <argument name="shippingMethod"/>
        </arguments>

        <waitForElementVisible selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/>
        <waitForPageLoad stepKey="waitForPageFullyLoaded"/>
        <waitForElementVisible selector="{{CheckoutPaymentSection.shippingMethodInformation}}" stepKey="waitForShippingMethodInformationVisible"/>
        <see userInput="{{shippingMethod}}" selector="{{CheckoutPaymentSection.shippingMethodInformation}}" stepKey="assertshippingMethodInformation"/>
    </actionGroup>
</actionGroups>
