EmailTemplateSection.xml 1.6 KB
<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">

    <section name="MarketingEmailTemplateSection">
        <element name="searchTemplateField" type="input" selector="#systemEmailTemplateGrid_filter_code"/>
        <element name="searchButton" type="button" selector="//*[@title='Search' and @class='action-default scalable action-secondary']"/>
        <element name="createdTemplate" type="button" selector="//*[normalize-space() ='{{arg}}']" parameterized="true"/>
        <element name="clearSearchTemplate" type="input" selector="//*[@id='systemEmailTemplateGrid_filter_code' and @value='{{arg2}}']" parameterized="true"/>
    </section>

    <section name="EmailTemplatesSection">
        <element name="addNewTemplateButton" type="button" selector="#add"/>
        <element name="templateDropDown" type="select" selector="#template_select"/>
        <element name="loadTemplateButton" type="button" selector="#load"/>
        <element name="templateNameField" type="input" selector="#template_code"/>
        <element name="saveTemplateButton" type="button" selector="#save"/>
        <element name="previewTemplateButton" type="button" selector="#preview"/>
        <element name="deleteTemplateButton" type="button" selector="#delete"/>
        <element name="resetFilterButton" type="button" selector="//span[contains(text(),'Reset Filter')]"/>
    </section>

</sections>