<?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="StorefrontSelectOptionTimeActionGroup">
        <annotations>
            <description>Selects the provided Hour, Minute and Part of Day under the provided Product Option Title on a Storefront Product page.</description>
        </annotations>
        <arguments>
            <argument name="optionTitle" defaultValue="ProductOptionTime"/>
            <argument name="hour" type="string"/>
            <argument name="minute" type="string"/>
            <argument name="dayPart" type="string"/>
        </arguments>
        
        <selectOption selector="{{StorefrontProductInfoMainSection.customOptionHour(optionTitle.title)}}" userInput="{{hour}}" stepKey="selectHourrForOptionDateTime"/>
        <selectOption selector="{{StorefrontProductInfoMainSection.customOptionMinute(optionTitle.title)}}" userInput="{{minute}}" stepKey="selectMinuteForOptionDateTime"/>
        <selectOption selector="{{StorefrontProductInfoMainSection.customOptionDayPart(optionTitle.title)}}" userInput="{{dayPart}}" stepKey="selectDayPartForOptionDateTime"/>
    </actionGroup>
</actionGroups>
