|
| 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