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

34 строки
1.9 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="AdminDeleteCustomUserActionGroup">
  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 url="{{AdminUsersPage.url}}" stepKey="navigateToUserGrid"/>
  18. <fillField selector="{{AdminUserGridSection.usernameFilterTextField}}" userInput="{{user.username}}" stepKey="enterUserName"/>
  19. <click selector="{{AdminUserGridSection.searchButton}}" stepKey="clickSearch"/>
  20. <waitForPageLoad stepKey="waitForGridToLoad"/>
  21. <see selector="{{AdminUserGridSection.usernameInFirstRow}}" userInput="{{user.username}}" stepKey="seeUser"/>
  22. <click selector="{{AdminUserGridSection.searchResultFirstRow}}" stepKey="openUserEdit"/>
  23. <waitForPageLoad stepKey="waitForUserEditPageLoad"/>
  24. <fillField selector="{{AdminEditUserSection.currentPasswordField}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}" stepKey="enterThePassword"/>
  25. <click selector="{{AdminMainActionsSection.delete}}" stepKey="deleteUser"/>
  26. <waitForElementVisible selector="{{AdminConfirmationModalSection.message}}" stepKey="waitForConfirmModal"/>
  27. <click selector="{{AdminConfirmationModalSection.ok}}" stepKey="confirmDelete"/>
  28. <waitForPageLoad stepKey="waitForSave"/>
  29. <see selector="{{AdminMessagesSection.success}}" userInput="You deleted the user." stepKey="seeUserDeleteMessage"/>
  30. </actionGroup>
  31. </actionGroups>