Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

36 rader
2.1 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="AdminDeleteCustomerActionGroup">
  11. <annotations>
  12. <description>Goes to the Customers grid page. Check the row for the provided Customer Email Address. Delete the Customer.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="customerEmail"/>
  16. </arguments>
  17. <amOnPage url="{{AdminCustomerPage.url}}" stepKey="navigateToCustomersPage"/>
  18. <conditionalClick selector="{{AdminCustomerFiltersSection.clearAll}}" dependentSelector="{{AdminCustomerFiltersSection.clearAll}}" visible="true" stepKey="clickClearFilters"/>
  19. <waitForPageLoad stepKey="waitForFiltersClear"/>
  20. <click selector="{{AdminCustomerFiltersSection.filtersButton}}" stepKey="openFilters"/>
  21. <fillField selector="{{AdminCustomerFiltersSection.emailInput}}" userInput="{{customerEmail}}" stepKey="fillEmail"/>
  22. <click selector="{{AdminCustomerFiltersSection.apply}}" stepKey="clickApplyFilters"/>
  23. <click stepKey="chooseCustomer" selector="{{AdminCustomerGridMainActionsSection.customerCheckbox(customerEmail)}}"/>
  24. <click stepKey="openActions" selector="{{AdminCustomerGridMainActionsSection.actions}}"/>
  25. <waitForPageLoad stepKey="waitActions"/>
  26. <click stepKey="delete" selector="{{AdminCustomerGridMainActionsSection.delete}}"/>
  27. <waitForPageLoad stepKey="waitForConfirmationAlert"/>
  28. <click stepKey="accept" selector="{{AdminCustomerGridMainActionsSection.ok}}"/>
  29. <waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessage"/>
  30. <see selector="{{AdminMessagesSection.success}}" userInput="A total of 1 record(s) were deleted." stepKey="seeSuccessMessage"/>
  31. <waitForPageLoad stepKey="waitForCustomersGridIsLoaded"/>
  32. </actionGroup>
  33. </actionGroups>