You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
2.2 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="CreateNewPageWithAllValuesActionGroup">
  11. <annotations>
  12. <description>Goes to the Admin CMS creation page. Fills in the provided Page details (Title, Heading, URL, Store View and Hierarchy).</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="PageTitle" type="string"/>
  16. <argument name="ContentHeading" type="string"/>
  17. <argument name="URLKey" type="string"/>
  18. <argument name="selectStoreViewOpt" type="string"/>
  19. <argument name="selectHierarchyOpt" type="string"/>
  20. </arguments>
  21. <amOnPage url="{{CmsNewPagePage.url}}" stepKey="amOnCMSNewPage"/>
  22. <waitForPageLoad stepKey="waitForPageLoad1"/>
  23. <fillField selector="{{CmsNewPagePageBasicFieldsSection.pageTitle}}" userInput="{{PageTitle}}" stepKey="fillFieldTitle"/>
  24. <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickExpandContent"/>
  25. <fillField selector="{{CmsNewPagePageContentSection.contentHeading}}" userInput="{{ContentHeading}}" stepKey="fillFieldContentHeading"/>
  26. <click selector="{{CmsNewPagePageSeoSection.header}}" stepKey="clickExpandSearchEngineOptimization"/>
  27. <fillField selector="{{CmsNewPagePageSeoSection.urlKey}}" userInput="{{URLKey}}" stepKey="fillFieldURLKey"/>
  28. <click selector="{{CmsNewPagePiwSection.header}}" stepKey="clickPageInWebsites"/>
  29. <waitForElementVisible selector="{{CmsNewPagePiwSection.selectStoreView(selectStoreViewOpt)}}" stepKey="waitForStoreGridReload"/>
  30. <clickWithLeftButton selector="{{CmsNewPagePiwSection.selectStoreView(selectStoreViewOpt)}}" stepKey="clickStoreView2"/>
  31. <click selector="{{CmsNewPageHierarchySection.header}}" stepKey="clickHierarchy"/>
  32. <click selector="{{CmsNewPageHierarchySection.selectHierarchy(selectHierarchyOpt)}}" stepKey="clickPageCheckBoxes"/>
  33. </actionGroup>
  34. </actionGroups>