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.
 
 
 
 
 
 

33 lines
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="AdminDeleteWidgetActionGroup">
  11. <annotations>
  12. <description>Goes to the Admin Widget grid page. Deletes the provided Widget. Validates that the Success Message is present and correct.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="widget"/>
  16. </arguments>
  17. <amOnPage url="{{AdminWidgetsPage.url}}" stepKey="amOnAdmin"/>
  18. <waitForPageLoad stepKey="waitWidgetsLoad"/>
  19. <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clearExistingFilters"/>
  20. <fillField selector="{{AdminWidgetsSection.widgetTitleSearch}}" userInput="{{widget.name}}" stepKey="fillTitle"/>
  21. <click selector="{{AdminWidgetsSection.searchButton}}" stepKey="clickContinue"/>
  22. <click selector="{{AdminWidgetsSection.searchResult}}" stepKey="clickSearchResult"/>
  23. <waitForPageLoad stepKey="waitForResultLoad"/>
  24. <click selector="{{AdminMainActionsSection.delete}}" stepKey="clickDelete"/>
  25. <waitForAjaxLoad stepKey="waitForAjaxLoad"/>
  26. <click selector="{{AdminConfirmationModalSection.ok}}" stepKey="confirmDelete"/>
  27. <waitForPageLoad stepKey="waitForDeleteLoad"/>
  28. <see selector="{{AdminMessagesSection.success}}" userInput="The widget instance has been deleted" stepKey="seeSuccess"/>
  29. </actionGroup>
  30. </actionGroups>