File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
app/code/Magento/Email/Test/Mftf/Test Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
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
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11
+ <test name =" AdminEmailTemplateForStoredXSSTest" >
12
+ <annotations >
13
+ <features value =" Email" />
14
+ <stories value =" Email template for stored XSS" />
15
+ <title value =" Email template with stored XSS should be escaped" />
16
+ <description value =" Admin creates a email template with stored XSS and it should not appear in template preview" />
17
+ <severity value =" MAJOR" />
18
+ <testCaseId value =" AC-4237" />
19
+ </annotations >
20
+ <before >
21
+ <actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
22
+ </before >
23
+ <after >
24
+ <!-- Delete created Template-->
25
+ <actionGroup ref =" DeleteEmailTemplateActionGroup" stepKey =" deleteTemplate" />
26
+ <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clearFilters" />
27
+ <actionGroup ref =" AdminLogoutActionGroup" stepKey =" adminLogout" />
28
+ </after >
29
+ <actionGroup ref =" CreateCustomTemplateActionGroup" stepKey =" createTemplate" >
30
+ <argument name =" template" value =" EmailTemplateWithStoreddXSS" />
31
+ </actionGroup >
32
+ <actionGroup ref =" PreviewEmailTemplateActionGroup" stepKey =" previewTemplate" />
33
+ <actionGroup ref =" AssertEmailTemplateContentActionGroup" stepKey =" assertContent" >
34
+ <argument name =" expectedContent" value =" {{EmailTemplateWithStoreddXSS.expectedTemplate}}" />
35
+ </actionGroup >
36
+ </test >
37
+ </tests >
You can’t perform that action at this time.
0 commit comments