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