<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->
<suites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Suite/etc/suiteSchema.xsd">
  <suite name="PageBuilderDisabledSuite">
    <before>
      <magentoCLI command="config:set cms/pagebuilder/enabled 0" stepKey="disblePageBuilder"/>
      <actionGroup ref="CliEnableTinyMCEActionGroup" stepKey="enableTinyMCE" />
      <magentoCLI command="config:set cms/wysiwyg/enabled disabled" stepKey="disableWYSIWYG"/>
        <actionGroup ref="CliCacheCleanActionGroup" stepKey="flushCache">
            <argument name="tags" value="config"/>
        </actionGroup>
    </before>
    <after>
      <magentoCLI command="config:set cms/pagebuilder/enabled 1" stepKey="enablePageBuilder"/>
      <magentoCLI command="config:set cms/wysiwyg/enabled enabled" stepKey="enableWYSIWYG"/>
      <actionGroup ref="CliEnableTinyMCEActionGroup" stepKey="enableTinyMCE" />
        <actionGroup ref="CliCacheCleanActionGroup" stepKey="flushCache">
            <argument name="tags" value="config"/>
        </actionGroup>
    </after>
    <include>
      <group name="pagebuilder_disabled"/>
    </include>
    <exclude>
      <group name="pagebuilder"/>
      <group name="pagebuilder-requiresValidMapAPIKey"/>
      <group name="remote_storage_aws_s3_pagebuilder"/>
    </exclude>
  </suite>
</suites>
