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

40 строки
2.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="AdminCreateUserWithRoleActionGroup">
  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="{{AdminNewUserPage.url}}" stepKey="navigateToNewUser"/>
  19. <waitForPageLoad stepKey="waitForUsersPage"/>
  20. <fillField selector="{{AdminCreateUserSection.usernameTextField}}" userInput="{{user.username}}" stepKey="enterUserName"/>
  21. <fillField selector="{{AdminCreateUserSection.firstNameTextField}}" userInput="{{user.firstName}}" stepKey="enterFirstName"/>
  22. <fillField selector="{{AdminCreateUserSection.lastNameTextField}}" userInput="{{user.lastName}}" stepKey="enterLastName"/>
  23. <fillField selector="{{AdminCreateUserSection.emailTextField}}" userInput="{{user.username}}@magento.com" stepKey="enterEmail"/>
  24. <fillField selector="{{AdminCreateUserSection.passwordTextField}}" userInput="{{user.password}}" stepKey="enterPassword"/>
  25. <fillField selector="{{AdminCreateUserSection.pwConfirmationTextField}}" userInput="{{user.password}}" stepKey="confirmPassword"/>
  26. <fillField selector="{{AdminCreateUserSection.currentPasswordField}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}" stepKey="enterCurrentPassword"/>
  27. <!-- Generate default value -->
  28. <generateDate date="+75 year" format="m/j/Y g:i A" stepKey="generateExpireDate"/>
  29. <fillField selector="{{AdminCreateUserSection.expireAtField}}" userInput="{$generateExpireDate}" stepKey="enterExpireAtField"/>
  30. <scrollToTopOfPage stepKey="scrollToTopOfPage"/>
  31. <click stepKey="clickUserRole" selector="{{AdminCreateUserSection.userRoleTab}}"/>
  32. <click stepKey="chooseRole" selector="{{AdminStoreSection.createdRoleInUserPage(role.name)}}"/>
  33. <click selector="{{AdminCreateUserSection.saveButton}}" stepKey="clickSaveUser"/>
  34. <waitForPageLoad stepKey="waitForSaveTheUser"/>
  35. <see userInput="You saved the user." stepKey="seeSuccessMessage"/>
  36. </actionGroup>
  37. </actionGroups>