選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

38 行
2.4 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="deleteBlock">
  11. <annotations>
  12. <description>Goes to the Admin CMS Blocks page. Filters the grid based on the provided Block. Deletes the Block via the grid.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="Block" defaultValue=""/>
  16. </arguments>
  17. <amOnPage url="{{CmsBlocksPage.url}}" stepKey="navigateToCMSBlocksGrid"/>
  18. <waitForPageLoad stepKey="waitForPageLoad1"/>
  19. <conditionalClick selector="{{BlockPageActionsSection.clearAll}}" dependentSelector="{{BlockPageActionsSection.activeFilters}}" stepKey="clickToResetFilter" visible="true"/>
  20. <waitForPageLoad stepKey="waitForPageLoad2"/>
  21. <click selector="{{BlockPageActionsSection.FilterBtn}}" stepKey="clickFilterBtn"/>
  22. <fillField selector="{{BlockPageActionsSection.URLKey}}" userInput="{{Block.identifier}}" stepKey="fillBlockIdentifierInput"/>
  23. <click selector="{{BlockPageActionsSection.ApplyFiltersBtn}}" stepKey="applyFilter"/>
  24. <waitForLoadingMaskToDisappear stepKey="waitForGridToLoadResults"/>
  25. <waitForElementVisible selector="{{BlockPageActionsSection.select(Block.identifier)}}" stepKey="waitForCMSPageGrid"/>
  26. <click selector="{{BlockPageActionsSection.select(Block.identifier)}}" stepKey="clickSelect"/>
  27. <waitForElementVisible selector="{{BlockPageActionsSection.edit(Block.identifier)}}" stepKey="waitForEditLink"/>
  28. <click selector="{{BlockPageActionsSection.edit(Block.identifier)}}" stepKey="clickEdit"/>
  29. <waitForLoadingMaskToDisappear stepKey="waitForPageToLoad"/>
  30. <click selector="{{CmsBlockBlockActionSection.deleteBlock}}" stepKey="deleteBlock"/>
  31. <waitForElementVisible selector="{{CmsBlockBlockActionSection.deleteConfirm}}" stepKey="waitForOkButtonToBeVisible"/>
  32. <click selector="{{CmsBlockBlockActionSection.deleteConfirm}}" stepKey="clickOkButton"/>
  33. <waitForPageLoad stepKey="waitForPageLoad3"/>
  34. <see userInput="You deleted the block." stepKey="seeSuccessMessage"/>
  35. </actionGroup>
  36. </actionGroups>