File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
app/code/Magento/Email/Test/Mftf/Test Expand file tree Collapse file tree 1 file changed +34
-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 =" 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 >
You can’t perform that action at this time.
0 commit comments