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

53 строки
2.8 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="AdminCreateUserWithoutPasswordActionGroup">
  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. <argument name="password" type="string" defaultValue="{{_ENV.ADOBE_IMS_PASSWORD}}"/>
  18. </arguments>
  19. <!--Open New Admin User Page. -->
  20. <amOnPage url="{{AdminNewUserPage.url}}" stepKey="navigateToNewAdminUser"/>
  21. <waitForPageLoad stepKey="waitForNewAdminUserPage"/>
  22. <!-- Fill admin user data. -->
  23. <fillField selector="{{AdminCreateUserSection.usernameTextField}}" userInput="{{user.username}}" stepKey="enterAdminUserName"/>
  24. <fillField selector="{{AdminCreateUserSection.firstNameTextField}}" userInput="{{user.firstName}}" stepKey="enterAdminFirstName"/>
  25. <fillField selector="{{AdminCreateUserSection.lastNameTextField}}" userInput="{{user.lastName}}" stepKey="enterAdminLastName"/>
  26. <fillField selector="{{AdminCreateUserSection.emailTextField}}" userInput="{{user.username}}@magento.com" stepKey="enterAdminEmail"/>
  27. <!-- Verify Current Admin User Identity via Adobe IMS. -->
  28. <click selector="{{AdminCreateUserSection.confirmIdentity}}" stepKey="clickConfirmIdentity"/>
  29. <!-- Switch to Admin IMS Window. -->
  30. <switchToNextTab stepKey="switchToNextTab"/>
  31. <waitForElementVisible selector="{{AdminAdobeImsSignInSection.password}}" stepKey="waitForAdobeImsForm"/>
  32. <fillField selector="{{AdminCreateUserSection.password}}" userInput="{{password}}" stepKey="fillPassword"/>
  33. <click selector="{{AdminAdobeImsSignInSection.AdobeImsPasswordContinueButton}}" stepKey="clickPasswordContinue"/>
  34. <waitForElementNotVisible selector="{{AdminAdobeImsSignInSection.password}}" time="30" stepKey="waitForAdobeImsFormToDisappear"/>
  35. <!-- Switch to Adobe Commerce Window. -->
  36. <switchToPreviousTab userInput="1" stepKey="switchPreviousTab"/>
  37. <!-- Select Admin User Role. -->
  38. <click selector="{{AdminCreateUserSection.userRoleTab}}" stepKey="clickUserRole"/>
  39. <click selector="{{AdminStoreSection.createdRoleInUserPage(role.name)}}" stepKey="chooseRole"/>
  40. <!-- Save admin user. -->
  41. <click selector="{{AdminCreateUserSection.saveButton}}" stepKey="clickSaveUser"/>
  42. <waitForPageLoad stepKey="waitForSaveTheUser"/>
  43. </actionGroup>
  44. </actionGroups>