Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

31 lignes
1.5 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="AdminDeleteUserActionGroup">
  11. <annotations>
  12. <description>Goes to the Admin Users grid page. Deletes the provided User. Validates that the Success Message is present and correct.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="user"/>
  16. </arguments>
  17. <amOnPage stepKey="amOnAdminUsersPage" url="{{AdminUsersPage.url}}"/>
  18. <waitForPageLoad stepKey="waitForAdminUserPageLoad"/>
  19. <click stepKey="openTheUser" selector="{{AdminDeleteUserSection.role(user.username)}}"/>
  20. <fillField stepKey="TypeCurrentPassword" selector="{{AdminDeleteUserSection.password}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}"/>
  21. <scrollToTopOfPage stepKey="scrollToTop"/>
  22. <click stepKey="clickToDeleteRole" selector="{{AdminDeleteUserSection.delete}}"/>
  23. <waitForElementVisible stepKey="wait" selector="{{AdminDeleteRoleSection.confirm}}" time="30"/>
  24. <click stepKey="clickToConfirm" selector="{{AdminDeleteUserSection.confirm}}"/>
  25. <waitForPageLoad stepKey="waitForPageLoad"/>
  26. <see stepKey="seeDeleteMessageForUser" userInput="You deleted the user."/>
  27. </actionGroup>
  28. </actionGroups>