<?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="AdminFillNewSearchSynonymsForCustomScopeActionGroup">
        <annotations>
            <description>Fills the search synonyms form field with a custom Scope.</description>
        </annotations>
        <arguments>
            <argument name="scopeName" type="string"/>
            <argument name="synonyms" type="string"/>
        </arguments>

        <click selector="{{AdminSearchSynonymsNewSection.scope}}" stepKey="clickScopeSelector"/>
        <waitForElementVisible selector="{{AdminSearchSynonymsNewSection.selectScope(scopeName)}}" stepKey="waitForScopesList"/>
        <click selector="{{AdminSearchSynonymsNewSection.selectScope(scopeName)}}" stepKey="clickStoreView"/>
        <fillField selector="{{AdminSearchSynonymsNewSection.synonyms}}" userInput="{{synonyms}}" stepKey="fillSynonyms"/>
        <checkOption selector="{{AdminSearchSynonymsNewSection.merge}}" stepKey="checkCheckbox"/>
    </actionGroup>
</actionGroups>
