<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
    <test name="ValidateMaxColumnErrorTest">
        <annotations>
            <features value="PageBuilder"/>
            <stories value="Column"/>
            <title value="Grid Size: Cant set grid size above max"/>
            <description value="Checks if setting the grid size above the max prompts an error"/>
            <severity value="AVERAGE"/>
            <useCaseId value="MC-950"/>
            <testCaseId value="MC-2299"/>
            <group value="pagebuilder"/>
            <group value="pagebuilder-column"/>
            <group value="pagebuilder-columnGridSize"/>
            <group value="pr_exclude"/>
            <group value="cloud"/>
        </annotations>
        <before>
            <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
            <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
            <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
            <actionGroup ref="dragContentTypeToStage" stepKey="dragRowToRootContainer">
                <argument name="contentType" value="PageBuilderRowContentType"/>
                <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
            </actionGroup>
        </before>
        <after>
            <actionGroup ref="AdminLogoutActionGroup" stepKey="logOut"/>
        </after>
        <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage">
            <argument name="contentType" value="PageBuilderColumnGroupContentType"/>
        </actionGroup>
        <actionGroup ref="openGridSizeFormInColumnGroup" stepKey="openGridSizeForm"/>
        <actionGroup ref="updateGridSizeInvalidInForm" stepKey="enterGridSizeOverMax">
            <argument name="gridSize" value="50"/>
            <argument name="errorMessage" value="PageBuilderGridSize.maximumGridSizeErrorMessage"/>
        </actionGroup>
    </test>
</tests>
