Skip to content

Commit 45261c8

Browse files
committed
ACQE-7334 : WYSIWYG is presented for content if page for edit is opened in new browser tab
created test file
1 parent b2b7b32 commit 45261c8

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="AdminVerifyWYSIWYGIsPresentedInNewTabTest">
11+
<annotations>
12+
<features value="Cms"/>
13+
<stories value="404 Not Found Page"/>
14+
<title value="WYSIWYG is presented for content if page for edit is opened in new browser tab"/>
15+
<description value="Testcase verifie WYSIWYG is presented for content if page for edit is opened in new browser tab"/>
16+
<severity value="MAJOR"/>
17+
<testCaseId value="AC-4119" />
18+
</annotations>
19+
<before>
20+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
21+
</before>
22+
<after>
23+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
24+
</after>
25+
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="navigateToCmsPageGrid"/>
26+
<waitForElementVisible selector="{{CmsPagesPageActionsSection.select('404 Not Found')}}" stepKey="waitForCMSPageListItem" />
27+
<click selector="{{CmsPagesPageActionsSection.select('404 Not Found')}}" stepKey="clickSelect" />
28+
<waitForElementVisible selector="{{CmsPagesPageActionsSection.edit('404 Not Found')}}" stepKey="waitForEditLink" />
29+
<waitForElementVisible selector="{{CmsPagesPageActionsSection.preview('404 Not Found')}}" stepKey="waitForPreviewLink" />
30+
<waitForElementVisible selector="{{CmsPagesPageActionsSection.delete('404 Not Found')}}" stepKey="waitForDeleteLink" />
31+
<click selector="{{CmsPagesPageActionsSection.edit('404 Not Found')}}" stepKey="clickEdit" />
32+
<openNewTab stepKey="openNewTab"/>
33+
<amOnPage url="admin/cms/page/edit/page_id/1/" stepKey="open404PageInNewTab"/>
34+
<waitForPageLoad stepKey="waitForCMSPage"/>
35+
<switchToPreviousTab stepKey="switchToPreviousTab"/>
36+
<actionGroup ref="AdminExpandContentSectionActionGroup" stepKey="expandContentSection"/>
37+
<waitForElementVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="waitForTinyMCE"/>
38+
<click selector="{{TinyMCESection.ShowHideBtn}}" stepKey="clickShowHideBtn1" />
39+
<wait time="10" stepKey="k1"/>
40+
<waitForElementNotVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="tinyMCENotAvailable"/>
41+
<waitForElementVisible selector="{{TinyMCESection.InsertWidgetBtn}}" stepKey="waitForInsertWidget"/>
42+
<waitForElementVisible selector="{{TinyMCESection.InsertImageBtn}}" stepKey="waitForInsertImage"/>
43+
<waitForElementVisible selector="{{TinyMCESection.InsertVariableBtn}}" stepKey="waitForInsertVariable"/>
44+
45+
46+
<switchToNextTab stepKey="switchToNextTab1"/>
47+
<actionGroup ref="AdminExpandContentSectionActionGroup" stepKey="expandContentSection1"/>
48+
<waitForElementVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="waitForTinyMCE1" />
49+
<click selector="{{TinyMCESection.ShowHideBtn}}" stepKey="clickShowHideBtn11" />
50+
<wait time="10" stepKey="k2"/>
51+
<waitForElementNotVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="tinyMCENotAvailable11"/>
52+
<waitForElementVisible selector="{{TinyMCESection.InsertWidgetBtn}}" stepKey="waitForInsertWidget1"/>
53+
<waitForElementVisible selector="{{TinyMCESection.InsertImageBtn}}" stepKey="waitForInsertImage1"/>
54+
<waitForElementVisible selector="{{TinyMCESection.InsertVariableBtn}}" stepKey="waitForInsertVariable1"/>
55+
</test>
56+
</tests>

0 commit comments

Comments
 (0)