text: <?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="AdminAddImageToWYSIWYGBlockTest">
          <annotations>
              <features value="Cms"/>
              <stories value="MAGETWO-42041-Default WYSIWYG toolbar configuration with Magento Media Gallery"/>
              <group value="Cms"/>
              <title value="Admin should be able to add image to WYSIWYG content of Block"/>
              <description value="Admin should be able to add image to WYSIWYG content of Block"/>
              <severity value="BLOCKER"/>
              <testCaseId value="MAGETWO-84376"/>
          </annotations>
          <before>
              <createData entity="_defaultCmsPage" stepKey="createCMSPage" />
              <createData entity="_defaultBlock" stepKey="createPreReqBlock" />
              <actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
              <actionGroup ref="EnabledWYSIWYGActionGroup" stepKey="enableWYSIWYG"/>
              <actionGroup ref="SwitchToVersion4ActionGroup" stepKey="switchToTinyMCE4" />
          </before>
          <actionGroup ref="AssignBlockToCMSPage" stepKey="assignBlockToCMSPage">
              <argument name="Block" value="$$createPreReqBlock$$"/>
              <argument name="CmsPage" value="$$createCMSPage$$"/>
          </actionGroup>
          <actionGroup ref="NavigateToCreatedCMSBlockPageActionGroup" stepKey="navigateToCreatedCMSBlockPage1">
              <argument name="CMSBlockPage" value="$$createPreReqBlock$$"/>
          </actionGroup>
          <selectOption selector="{{BlockNewPageBasicFieldsSection.storeView}}" userInput="All Store View" stepKey="selectAllStoreView" />
          <waitForElementVisible selector="{{TinyMCESection.TinyMCE4}}" stepKey="waitForTinyMCE" />
          <click selector="{{TinyMCESection.InsertImageIcon}}" stepKey="clickInsertImageIcon" />
          <waitForPageLoad stepKey="waitForPageLoad2" />
          <actionGroup ref="ClickBrowseBtnOnUploadPopupActionGroup" stepKey="clickBrowserBtn"/>
          <actionGroup ref="VerifyMediaGalleryStorageActionsActionGroup" stepKey="VerifyMediaGalleryStorageBtn"/>
          <actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="navigateToFolder">
              <argument name="FolderName" value="Storage Root"/>
          </actionGroup>
          <actionGroup ref="CreateImageFolderActionGroup" stepKey="CreateImageFolder">
              <argument name="ImageFolder" value="ImageFolder"/>
          </actionGroup>
          <actionGroup ref="AttachImageActionGroup" stepKey="attachImage1">
              <argument name="Image" value="ImageUpload"/>
          </actionGroup>
          <actionGroup ref="DeleteImageActionGroup" stepKey="deleteImage"/>
          <actionGroup ref="AttachImageActionGroup" stepKey="attachImage2">
              <argument name="Image" value="ImageUpload"/>
          </actionGroup>
          <actionGroup ref="SaveImageActionGroup" stepKey="insertImage"/>
          <actionGroup ref="FillOutUploadImagePopupActionGroup" stepKey="fillOutUploadImagePopup" />
          <click selector="{{BlockNewPagePageActionsSection.saveBlock}}" stepKey="clickSaveBlock"/>
          <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
          <waitForPageLoad stepKey="waitForPageLoad11" />
          <!--see image on Storefront-->
          <seeElement selector="{{StorefrontBlockSection.mediaDescription}}" stepKey="assertMediaDescription"/>
          <seeElementInDOM selector="{{StorefrontBlockSection.imageSource(ImageUpload.fileName)}}" stepKey="assertMediaSource"/>
          <after>
              <actionGroup ref="NavigateToMediaGalleryActionGroup" stepKey="navigateToMediaGallery"/>
              <actionGroup ref="DeleteFolderActionGroup" stepKey="DeleteCreatedFolder">
                  <argument name="ImageFolder" value="ImageFolder"/>
              </actionGroup>
              <amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnEditPage"/>
              <waitForPageLoad stepKey="waitForPageLoad"/>
              <conditionalClick selector="{{CmsPagesPageActionsSection.clearAllButton}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" stepKey="clickToResetFilter" visible="true"/>
              <waitForPageLoad stepKey="waitForGridReload"/>
              <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" />
              <deleteData createDataKey="createCMSPage" stepKey="deletePreReqCMSPage" />
              <actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/>
              <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
          </after>
      </test>
  </tests>
  