Skip to content

Commit 584ed11

Browse files
updatedACQE-7048:AdminEmailTemplateForStoredXSSTest
1 parent e25219e commit 584ed11

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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>

0 commit comments

Comments
 (0)