AdminDeleteCustomerActionGroup.xml 1.3 KB

123456789101112131415161718192021222324
  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="AdminDeleteCustomerActionGroup">
  11. <arguments>
  12. <argument name="customerEmail"/>
  13. </arguments>
  14. <amOnPage url="{{AdminCustomerPage.url}}" stepKey="navigateToCustomersPage"/>
  15. <conditionalClick selector="{{AdminCustomerFiltersSection.clearAll}}" dependentSelector="{{AdminCustomerFiltersSection.clearAll}}" visible="true" stepKey="clickClearFilters"/>
  16. <click stepKey="chooseCustomer" selector="{{AdminCustomerGridMainActionsSection.customerCheckbox(customerEmail)}}"/>
  17. <click stepKey="openActions" selector="{{AdminCustomerGridMainActionsSection.actions}}"/>
  18. <waitForPageLoad stepKey="waitActions"/>
  19. <click stepKey="delete" selector="{{AdminCustomerGridMainActionsSection.delete}}"/>
  20. <waitForPageLoad stepKey="waitForConfirmationAlert"/>
  21. <click stepKey="accept" selector="{{AdminCustomerGridMainActionsSection.ok}}"/>
  22. <see stepKey="seeSuccessMessage" userInput="were deleted."/>
  23. </actionGroup>
  24. </actionGroups>