<?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="CreateAttributeDropdownNthOptionActionGroup">
        <annotations>
            <description>Creates an Option for a Product Attribute (Attribute Type: Dropdown).</description>
        </annotations>
        <arguments>
            <argument name="row" type="string"/>
            <argument name="adminName" type="string"/>
            <argument name="frontName" type="string"/>
        </arguments>

        <click stepKey="clickAddOptions" selector="{{AttributePropertiesSection.dropdownAddOptions}}"/>
        <waitForPageLoad stepKey="waitForNewOption"/>
        <fillField stepKey="fillAdmin" selector="{{AttributePropertiesSection.dropdownNthOptionAdmin(row)}}" userInput="{{adminName}}"/>
        <fillField stepKey="fillStoreView" selector="{{AttributePropertiesSection.dropdownNthOptionDefaultStoreView(row)}}" userInput="{{frontName}}"/>
    </actionGroup>
</actionGroups>
