DeleteCustomerActionGroup.xml 1.5 KB

123456789101112131415161718192021222324252627
  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="DeleteCustomerActionGroup">
  11. <arguments>
  12. <argument name="lastName" defaultValue=""/>
  13. </arguments>
  14. <!--Clear filter if exist-->
  15. <amOnPage url="{{AdminCustomerPage.url}}" stepKey="navigateToCustomers"/>
  16. <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clearExistingCustomerFilters"/>
  17. <click stepKey="chooseCustomer" selector="{{CustomersPageSection.customerCheckbox(lastName)}}"/>
  18. <waitForAjaxLoad stepKey="waitForThick" time="2"/>
  19. <click stepKey="OpenActions" selector="{{CustomersPageSection.actions}}"/>
  20. <waitForAjaxLoad stepKey="waitForDelete" time="5"/>
  21. <click stepKey="ChooseDelete" selector="{{CustomersPageSection.delete}}"/>
  22. <waitForPageLoad stepKey="waitForDeleteItemPopup" time="10"/>
  23. <click stepKey="clickOnOk" selector="{{CustomersPageSection.ok}}"/>
  24. <waitForElementVisible stepKey="waitForSuccessfullyDeletedMessage" selector="{{CustomersPageSection.deletedSuccessMessage}}" time="10"/>
  25. </actionGroup>
  26. </actionGroups>