Skip to content

Commit a961cbf

Browse files
committed
ACP2E-1323: Unable to Preview the email template
1 parent 1746a45 commit a961cbf

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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="AdminEmailTemplatePreviewFromGridNewTabTest" extends="AdminEmailTemplatePreviewFromGridTest">
12+
<annotations>
13+
<features value="Email"/>
14+
<stories value="Preview email template from grid opens in a new tab"/>
15+
<title value="Check email template preview from grid"/>
16+
<description value="Check if email template preview action in the grid opens in a new tab"/>
17+
<severity value="AVERAGE"/>
18+
<testCaseId value="AC-6988"/>
19+
<useCaseId value="ACP2E-107"/>
20+
<group value="email"/>
21+
<group value="WYSIWYGDisabled"/>
22+
</annotations>
23+
24+
<!-- Capture the parent and the preview window sizes for comparison -->
25+
<executeJS function="return window.outerWidth + ',' + window.outerHeight;" after="createTemplate" stepKey="parentWindowSize"/>
26+
<executeJS function="return window.outerWidth + ',' + window.outerHeight;" after="previewTemplateFromGrid" stepKey="previewWindowSize"/>
27+
28+
<!-- Assert the preview window has the same dimensions as its parent -->
29+
<assertEquals after="previewWindowSize" stepKey="assertThatPreviewWindowSizeIsTheSameAsParent">
30+
<actualResult type="const">$previewWindowSize</actualResult>
31+
<expectedResult type="const">$parentWindowSize</expectedResult>
32+
</assertEquals>
33+
</test>
34+
</tests>

0 commit comments

Comments
 (0)