Skip to content

Commit f76d3c0

Browse files
committed
Merge branch 'ACQE-7334' into functiona-tests-mainline-deployment-1
2 parents 6c4de07 + 9491a62 commit f76d3c0

File tree

3 files changed

+91
-0
lines changed

3 files changed

+91
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="AdminVerifyCmsPageSelectMenuActionGroup">
11+
<arguments>
12+
<argument name="pageName" type="string" defaultValue="404 Not Found"/>
13+
</arguments>
14+
<annotations>
15+
<description>Goes to Admin CMS Page grid page. Validates that all of the select menu options are present.</description>
16+
</annotations>
17+
<waitForElementVisible selector="{{CmsPagesPageActionsSection.select('pageName')}}" stepKey="waitForCMSPageListItem" />
18+
<click selector="{{CmsPagesPageActionsSection.select('pageName')}}" stepKey="clickSelect" />
19+
<waitForElementVisible selector="{{CmsPagesPageActionsSection.edit('pageName')}}" stepKey="waitForEditLink" />
20+
<waitForElementVisible selector="{{CmsPagesPageActionsSection.preview('pageName')}}" stepKey="waitForPreviewLink" />
21+
<waitForElementVisible selector="{{CmsPagesPageActionsSection.delete('pageName')}}" stepKey="waitForDeleteLink" />
22+
</actionGroup>
23+
</actionGroups>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="AdminVerifyWYSIWYGEditorAndTinyMCEButtonsActionGroup">
11+
<annotations>
12+
<description>Goes to Admin CMS Page creation page. Validates that all of the Tiny MCE buttons are present.</description>
13+
</annotations>
14+
<waitForElementVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="waitForTinyMCE"/>
15+
<click selector="{{TinyMCESection.ShowHideBtn}}" stepKey="clickShowHideBtn" />
16+
<waitForElementNotVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="tinyMCENotAvailable"/>
17+
<waitForElementVisible selector="{{TinyMCESection.InsertWidgetBtn}}" stepKey="waitForInsertWidget"/>
18+
<waitForElementVisible selector="{{TinyMCESection.InsertImageBtn}}" stepKey="waitForInsertImage"/>
19+
<waitForElementVisible selector="{{TinyMCESection.InsertVariableBtn}}" stepKey="waitForInsertVariable"/>
20+
</actionGroup>
21+
</actionGroups>
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
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="AdminVerifyWYSIWYGEditorAndTinyMCEButtonsAcrossBrowserTabsTest">
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 editor and tiny mce buttons for 404 not found page on browser tabs"/>
16+
<severity value="MAJOR"/>
17+
<testCaseId value="AC-4119" />
18+
</annotations>
19+
<before>
20+
<!-- Enable WYSIWYG editor -->
21+
<actionGroup ref="EnabledWYSIWYGActionGroup" stepKey="enableWYSIWYG"/>
22+
<!-- Enable TinyMCE -->
23+
<actionGroup ref="CliEnableTinyMCEActionGroup" stepKey="enableTinyMCE" />
24+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
25+
</before>
26+
<after>
27+
<actionGroup ref="AdminDisableWYSIWYGActionGroup" stepKey="disableWYSIWYG"/>
28+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
29+
</after>
30+
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="navigateToCmsPageGrid"/>
31+
<actionGroup ref="AdminVerifyCmsPageSelectMenuActionGroup" stepKey="verify404NotFoundPageSelectMenu"/>
32+
<click selector="{{CmsPagesPageActionsSection.edit('404 Not Found')}}" stepKey="clickEdit" />
33+
<openNewTab stepKey="openNewTab"/>
34+
<!--Open created cms page-->
35+
<actionGroup ref="AdminOpenCmsPageActionGroup" stepKey="openEditPage">
36+
<argument name="page_id" value="1"/>
37+
</actionGroup>
38+
<waitForPageLoad stepKey="waitForCMSPage"/>
39+
<switchToPreviousTab stepKey="switchToPreviousTab"/>
40+
<waitForPageLoad stepKey="waitForCMSPageToLoad"/>
41+
<conditionalClick selector="{{CmsNewPagePageContentSection.header}}" dependentSelector="{{CmsNewPagePageContentSection.contentHeading}}" visible="false" stepKey="expandContentTabIfCollapsed"/>
42+
<actionGroup ref="AdminVerifyWYSIWYGEditorAndTinyMCEButtonsActionGroup" stepKey="verifyWYSIWYGEditorAndButtonsPresentInCurrentTab"/>
43+
<switchToNextTab stepKey="switchToNextTab"/>
44+
<conditionalClick selector="{{CmsNewPagePageContentSection.header}}" dependentSelector="{{CmsNewPagePageContentSection.contentHeading}}" visible="false" stepKey="againExpandContentTabIfCollapsed"/>
45+
<actionGroup ref="AdminVerifyWYSIWYGEditorAndTinyMCEButtonsActionGroup" stepKey="verifyWYSIWYGEditorAndButtonsPresentInAnotherTab"/>
46+
</test>
47+
</tests>

0 commit comments

Comments
 (0)