<?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="openPageBuilderApplyTemplateSlideOut">
        <annotations>
            <description>Opens the Page Builder Apply Template slide out from the Page Builder stage.</description>
        </annotations>
        <arguments>
            <argument name="pageBuilderArea" defaultValue="" type="string"/>
        </arguments>
        <waitForElementVisible selector="{{pageBuilderArea}}{{PageBuilderStage.applyTemplateButton}}" stepKey="waitForApplyTemplateButton"/>
        <click selector="{{pageBuilderArea}}{{PageBuilderStage.applyTemplateButton}}" stepKey="clickApplyTemplateButton"/>
        <waitForPageLoad stepKey="waitForSlideOutLoad"/>
        <waitForElementVisible selector="{{PageBuilderApplyTemplateSlideOut.activeSlideOut}}" stepKey="waitForSlideOut"/>
        <see userInput="Apply Template" selector="{{PageBuilderApplyTemplateSlideOut.title}}" stepKey="seeTitle"/>
        <waitForPageLoad stepKey="waitForSlideOutForm"/>
    </actionGroup>
</actionGroups>
