<?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="AdminSaveAdobeStockImagePreviewActionGroup">
        <arguments>
            <argument name="name" type="string" defaultValue="{{AdobeStockImageData.name}}"/>
        </arguments>
        <waitForElementVisible selector="{{AdminAdobeStockSaveImagePreviewSection.name}}" time="30" stepKey="waitForInputVisible"/>
        <fillField selector="{{AdminAdobeStockSaveImagePreviewSection.name}}" userInput="{{name}}" stepKey="setImageName"/>
        <waitForElementClickable selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="waitForConfirmButtonClickable"/>
        <click selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="confirmSavingThePreview"/>
        <waitForPageLoad stepKey="waitForImagePreviewToSave"/>
        <dontSeeElementInDOM selector="{{AdminAdobeStockImagePreviewSection.errorMessage}}" stepKey="verifyNoErrorMessage"/>
    </actionGroup>
</actionGroups>
