<?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="AdminMediaGalleryAssertAttentionModalActionGroup">
        <annotations>
            <description>Verifies that a modal is present that tells the user that they cannot create the directory</description>
        </annotations>
        <arguments>
            <argument name="headerText" type="string" defaultValue="Attention"/>
            <argument name="action" type="string" defaultValue="create"/>
            <argument name="folderName" type="string" defaultValue="{{AdminMediaGalleryFolderData.name}}"/>
        </arguments>
        <waitForElementVisible selector="{{AdminMediaGalleryAttentionModalSection.attentionModalHeader(headerText)}}" stepKey="waitForModalHeader"/>
        <waitForElementVisible selector="{{AdminMediaGalleryAttentionModalSection.attentionModalContent(action, folderName)}}" stepKey="waitForModalContent"/>
    </actionGroup>
</actionGroups>
