Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

30 linhas
1.7 KiB

  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. <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
  10. <actionGroup name="ClearWidgetsFromCMSContentActionGroup">
  11. <annotations>
  12. <description>Goes to the Admin CMS Page Edit page for the Page ID number 2. Clears the Widget and replaces it with Text. PLEASE NOTE: The Page ID/Text are Hardcoded.</description>
  13. </annotations>
  14. <amOnPage url="{{AdminCmsPageEditPage.url('2')}}" stepKey="navigateToEditHomePagePage"/>
  15. <waitForPageLoad stepKey="waitEditHomePagePageToLoad"/>
  16. <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickContentTab"/>
  17. <waitForElementNotVisible selector="{{TinyMCESection.CheckIfTabExpand}}" stepKey="waitForTabExpand"/>
  18. <executeJS function="jQuery('[id=\'cms_page_form_content_ifr\']').attr('name', 'preview-iframe')" stepKey="setPreviewFrameName"/>
  19. <switchToIFrame selector="preview-iframe" stepKey="switchToIframe"/>
  20. <fillField selector="{{TinyMCESection.EditorContent}}" userInput="Hello TinyMCE!" stepKey="clearWidgets"/>
  21. <switchToIFrame stepKey="switchOutFromIframe"/>
  22. <executeJS function="tinyMCE.activeEditor.setContent('Hello TinyMCE!');" stepKey="executeJSFillContent1"/>
  23. <click selector="{{InsertWidgetSection.save}}" stepKey="saveWidget"/>
  24. <waitForPageLoad stepKey="waitSaveToBeApplied"/>
  25. <see selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the page." stepKey="seeSaveSuccess"/>
  26. </actionGroup>
  27. </actionGroups>