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.
 
 
 
 
 
 

35 lines
2.3 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="NavigateToCreatedCMSBlockPageActionGroup">
  11. <annotations>
  12. <description>Goes to the Admin Blocks page. Clicks on 'Edit' for the provided Block.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="CMSBlockPage" defaultValue=""/>
  16. </arguments>
  17. <amOnPage url="{{CmsBlocksPage.url}}" stepKey="navigateToCMSBlocksGrid"/>
  18. <waitForPageLoad stepKey="waitForPageLoad1"/>
  19. <conditionalClick selector="{{CmsPagesPageActionsSection.clearAllButton}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" stepKey="clickToResetFilter" visible="true"/>
  20. <waitForPageLoad stepKey="waitForPageLoad2"/>
  21. <conditionalClick selector="{{BlockPageActionsSection.idColumn}}" 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. <waitForPageLoad stepKey="waitForFirstIdSortDescendingToFinish"/>
  23. <!-- Conditional Click again in case it goes from default state to ascending on first click -->
  24. <conditionalClick selector="{{BlockPageActionsSection.idColumn}}" 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. <waitForPageLoad stepKey="waitForSecondIdSortDescendingToFinish"/>
  26. <click selector="{{BlockPageActionsSection.select(CMSBlockPage.identifier)}}" stepKey="clickSelectCreatedCMSBlock"/>
  27. <click selector="{{BlockPageActionsSection.edit(CMSBlockPage.identifier)}}" stepKey="navigateToCreatedCMSBlock"/>
  28. <waitForPageLoad stepKey="waitForPageLoad3"/>
  29. <waitForPageLoad stepKey="waitForLoadingMaskOfStagingSection"/>
  30. </actionGroup>
  31. </actionGroups>