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

42 строки
2.6 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="AdminCreateUserActionGroup">
  11. <annotations>
  12. <description>Goes to the Admin Users grid page. Clicks on Create User. Fills in the provided Role and User.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="role"/>
  16. <argument name="User" defaultValue="newAdmin"/>
  17. </arguments>
  18. <amOnPage url="{{AdminUsersPage.url}}" stepKey="amOnAdminUsersPage"/>
  19. <waitForPageLoad stepKey="waitForAdminUserPageLoad"/>
  20. <click selector="{{AdminCreateUserSection.create}}" stepKey="clickToCreateNewUser"/>
  21. <fillField selector="{{AdminEditUserSection.usernameTextField}}" userInput="{{User.username}}" stepKey="enterUserName"/>
  22. <fillField selector="{{AdminEditUserSection.firstNameTextField}}" userInput="{{User.firstName}}" stepKey="enterFirstName"/>
  23. <fillField selector="{{AdminEditUserSection.lastNameTextField}}" userInput="{{User.lastName}}" stepKey="enterLastName"/>
  24. <fillField selector="{{AdminEditUserSection.emailTextField}}" userInput="{{User.username}}@magento.com" stepKey="enterEmail"/>
  25. <fillField selector="{{AdminEditUserSection.passwordTextField}}" userInput="{{User.password}}" stepKey="enterPassword"/>
  26. <fillField selector="{{AdminEditUserSection.pwConfirmationTextField}}" userInput="{{User.password}}" stepKey="confirmPassword"/>
  27. <fillField selector="{{AdminEditUserSection.currentPasswordField}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}" stepKey="enterCurrentPassword"/>
  28. <scrollToTopOfPage stepKey="scrollToTopOfPage"/>
  29. <click selector="{{AdminEditUserSection.userRoleTab}}" stepKey="clickUserRole"/>
  30. <waitForPageLoad stepKey="waitForAdminUserRoleTabLoad"/>
  31. <fillField selector="{{AdminEditUserSection.roleNameFilterTextField}}" userInput="{{role.name}}" stepKey="filterRole"/>
  32. <click selector="{{AdminEditUserSection.searchButton}}" stepKey="clickSearch"/>
  33. <waitForPageLoad stepKey="waitForLoadingMaskToDisappear1"/>
  34. <click selector="{{AdminEditUserSection.searchResultFirstRow}}" stepKey="selectRole"/>
  35. <click selector="{{AdminEditUserSection.saveButton}}" stepKey="clickSaveUser"/>
  36. <waitForPageLoad stepKey="waitForPageLoad2"/>
  37. <see userInput="You saved the user." stepKey="seeSuccessMessage"/>
  38. </actionGroup>
  39. </actionGroups>