Skip to content

Commit e3942dc

Browse files
MAGETWO-66489: Fatal Error Previewing Registry Update Email
- Update automated test based on commen
1 parent ae3a101 commit e3942dc

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

app/code/Magento/Email/Test/Mftf/ActionGroup/EmailTemplateActionGroup.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10-
xsi:noNamespaceSchemaLocation="../../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111

1212
<!--Create New Template -->
1313
<actionGroup name="CreateNewTemplate">
@@ -19,7 +19,8 @@
1919

2020
<!--Fill in required fields in "Template Information" tab and click "Save Template" button-->
2121
<click stepKey="clickLoadTemplateButton" selector="{{EmailTemplatesSection.loadTemplateButton}}" after="selectValueFromTemplateDropDown"/>
22-
<fillField stepKey="fillTemplateNameField" selector="{{EmailTemplatesSection.templateNameField}}" userInput="{{EmailTemplate.templateName}}" after="clickLoadTemplateButton"/>
22+
<waitForElementVisible selector="{{EmailTemplatesSection.templateNameField}}" stepKey="waitForTemplateNameFieldVisible"/>
23+
<fillField stepKey="fillTemplateNameField" selector="{{EmailTemplatesSection.templateNameField}}" userInput="{{EmailTemplate.templateName}}"/>
2324
<click stepKey="clickSaveTemplateButton" selector="{{EmailTemplatesSection.saveTemplateButton}}"/>
2425
<waitForPageLoad stepKey="waitForNewTemplateCreated"/>
2526
</actionGroup>

app/code/Magento/Email/Test/Mftf/Data/EmailTemplateData.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88

99
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10-
xsi:noNamespaceSchemaLocation="../../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
1111
<entity name="EmailTemplate" type="template">
1212
<data key="templateName" unique="suffix">Template</data>
1313
</entity>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:/Page/etc/PageObject.xsd">
11+
<page name="AdminEmailTemplatePage" url="/admin/email_template/" area="admin" module="Email">
12+
<section name="AdminEmailTemplatePageActionSection"/>
13+
</page>
14+
</pages>

app/code/Magento/Email/Test/Mftf/Section/EmailTemplateSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88

99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10-
xsi:noNamespaceSchemaLocation="../../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111

1212
<section name="MarketingEmailTemplateSection">
1313
<element name="searchTemplateField" type="input" selector="#systemEmailTemplateGrid_filter_code"/>

0 commit comments

Comments
 (0)