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.
 
 
 
 
 
 

36 rivejä
2.5 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="NavigateToCreatedCMSPageActionGroup">
  11. <annotations>
  12. <description>Goes to the Admin CMS Pages page. </description>
  13. </annotations>
  14. <arguments>
  15. <argument name="CMSPage" defaultValue=""/>
  16. </arguments>
  17. <amOnPage url="{{CmsPagesPage.url}}" stepKey="navigateToCMSPagesGrid"/>
  18. <waitForPageLoad stepKey="waitForPageLoad1"/>
  19. <conditionalClick selector="{{CmsPagesPageActionsSection.clearAllButton}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" stepKey="clickToResetFilter" visible="true"/>
  20. <waitForPageLoad stepKey="waitForPageLoad2"/>
  21. <conditionalClick selector="//div[contains(@data-role, 'grid-wrapper')]/table/thead/tr/th/span[contains(text(), 'ID')]" dependentSelector="//span[contains(text(), 'ID')]/parent::th[not(contains(@class, '_descend'))]/parent::tr/parent::thead/parent::table/parent::div[contains(@data-role, 'grid-wrapper')]" stepKey="clickToAttemptSortByIdDescending" visible="true"/>
  22. <waitForLoadingMaskToDisappear stepKey="waitForFirstIdSortDescendingToFinish"/>
  23. <!-- Conditional Click again in case it goes from default state to ascending on first click -->
  24. <conditionalClick selector="//div[contains(@data-role, 'grid-wrapper')]/table/thead/tr/th/span[contains(text(), 'ID')]" dependentSelector="//span[contains(text(), 'ID')]/parent::th[not(contains(@class, '_descend'))]/parent::tr/parent::thead/parent::table/parent::div[contains(@data-role, 'grid-wrapper')]" stepKey="secondClickToAttemptSortByIdDescending" visible="true"/>
  25. <waitForLoadingMaskToDisappear stepKey="waitForSecondIdSortDescendingToFinish"/>
  26. <click selector="{{CmsPagesPageActionsSection.select(CMSPage.identifier)}}" stepKey="clickSelectCreatedCMSPage"/>
  27. <click selector="{{CmsPagesPageActionsSection.edit(CMSPage.identifier)}}" stepKey="navigateToCreatedCMSPage"/>
  28. <waitForPageLoad stepKey="waitForPageLoad3"/>
  29. <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickExpandContentTabForPage"/>
  30. <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskOfStagingSection"/>
  31. </actionGroup>
  32. </actionGroups>