<?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="AdminChangeInstantPurchaseButtonTextActionGroup">
        <arguments>
            <argument name="buttonText" type="string" defaultValue="Instant Purchase"/>
        </arguments>
        <conditionalClick selector="{{AdminInstantPurchaseConfigSection.salesInstantPurchaseTab}}" dependentSelector="{{AdminInstantPurchaseConfigSection.salesInstantPurchaseButtonText}}" visible="false" stepKey="expandTab"/>
        <click selector="{{AdminInstantPurchaseConfigSection.salesInstantPurchaseButtonTextUseWebsite}}" stepKey="clickUseWebsite"/>
        <fillField selector="{{AdminInstantPurchaseConfigSection.salesInstantPurchaseButtonText}}" userInput="{{buttonText}}" stepKey="changeInstantPurchaseButtonText"/>
        <click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfigs"/>
        <waitForPageLoad stepKey="waitForPageLoad"/>
        <see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the configuration." stepKey="seeSuccessMessage"/>
    </actionGroup>
</actionGroups>
