Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

49 строки
2.3 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. <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
  10. <test name="AdminDeleteCustomerTest">
  11. <annotations>
  12. <stories value="Delete customer"/>
  13. <title value="DeleteCustomerBackendEntityTestVariation1"/>
  14. <description value="Login as admin and delete the customer"/>
  15. <severity value="BLOCKER"/>
  16. <testCaseId value="MC-14587"/>
  17. <group value="mtf_migrated"/>
  18. </annotations>
  19. <before>
  20. <!-- Create Customer -->
  21. <createData entity="CustomerEntityOne" stepKey="createCustomer"/>
  22. <!-- Login as admin -->
  23. <actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
  24. </before>
  25. <after>
  26. <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
  27. </after>
  28. <!-- Delete created customer -->
  29. <actionGroup ref="DeleteCustomerByEmailActionGroup" stepKey="deleteCustomer">
  30. <argument name="email" value="$$createCustomer.email$$"/>
  31. </actionGroup>
  32. <seeElement selector="{{CustomersPageSection.deletedSuccessMessage}}" stepKey="seeSuccessMessage"/>
  33. <waitForPageLoad stepKey="waitForCustomerGridPageToLoad"/>
  34. <actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="resetGrid"/>
  35. <!--Assert Customer is not in Grid -->
  36. <click selector="{{AdminCustomerFiltersSection.filtersButton}}" stepKey="clickFilterButton"/>
  37. <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="cleanFiltersIfTheySet"/>
  38. <waitForPageLoad stepKey="waitForClearFilters1"/>
  39. <fillField selector="{{AdminCustomerFiltersSection.emailInput}}" userInput="$$createCustomer.email$$" stepKey="filterEmail"/>
  40. <click selector="{{AdminCustomerFiltersSection.apply}}" stepKey="applyFilter"/>
  41. <waitForPageLoad stepKey="waitForPageToLoad"/>
  42. <see selector="{{AdminCustomerGridSection.customerGrid}}" userInput="We couldn't find any records." stepKey="seeEmptyRecordMessage"/>
  43. </test>
  44. </tests>