<?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="AdminSetProductLayoutSettingsActionGroup">
        <annotations>
            <description>Sets the 'Default Product Layout' to requested value.</description>
        </annotations>
        <arguments>
            <argument name="layout" type="string"/>
        </arguments>
        
        <waitForElementVisible selector="{{DefaultLayoutsSection.productLayout}}" stepKey="waittForDefaultProductLayout"/>
        <selectOption selector="{{DefaultLayoutsSection.productLayout}}" userInput="{{layout}}" stepKey="selectLayout"/>
        <click selector="{{ContentManagementSection.Save}}" stepKey="clickSaveConfig"/>
        <waitForPageLoad stepKey="waitForSavingSystemConfiguration"/>
        <see userInput="You saved the configuration." stepKey="seeSuccessMessage"/>
    </actionGroup>
</actionGroups>
