SecondaryGridActionGroup.xml 1.4 KB

12345678910111213141516171819202122232425262728293031
  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. <!-- Action group to delete an item given that items name -->
  11. <!-- Must already be on the admin page containing the grid -->
  12. <actionGroup name="deleteEntitySecondaryGrid">
  13. <arguments>
  14. <argument name="name" type="string"/>
  15. <argument name="searchInput" type="string"/>
  16. </arguments>
  17. <!-- search for the name -->
  18. <click stepKey="resetFilters" selector="{{AdminSecondaryGridSection.resetFilters}}"/>
  19. <fillField stepKey="fillIdentifier" selector="{{searchInput}}" userInput="{{name}}"/>
  20. <click stepKey="searchForName" selector="{{AdminSecondaryGridSection.searchButton}}"/>
  21. <click stepKey="clickResult" selector="{{AdminSecondaryGridSection.firstRow}}"/>
  22. <waitForPageLoad stepKey="waitForTaxRateLoad"/>
  23. <!-- delete the rule -->
  24. <click stepKey="clickDelete" selector="{{AdminStoresMainActionsSection.deleteButton}}"/>
  25. <click stepKey="clickOk" selector="{{AdminConfirmationModalSection.ok}}"/>
  26. <see stepKey="seeSuccess" selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="deleted"/>
  27. </actionGroup>
  28. </actionGroups>