|
15 | 15 | <arguments> |
16 | 16 | <argument name="role"/> |
17 | 17 | <argument name="user" defaultValue="newAdmin"/> |
| 18 | + <argument name="password" type="string" defaultValue="{{_ENV.ADOBE_IMS_PASSWORD}}"/> |
18 | 19 | </arguments> |
19 | 20 |
|
20 | | - <amOnPage url="{{AdminNewUserPage.url}}" stepKey="navigateToNewUser"/> |
21 | | - <waitForPageLoad stepKey="waitForUsersPage"/> |
22 | | - <fillField selector="{{AdminCreateUserSection.usernameTextField}}" userInput="{{user.username}}" stepKey="enterUserName"/> |
23 | | - <fillField selector="{{AdminCreateUserSection.firstNameTextField}}" userInput="{{user.firstName}}" stepKey="enterFirstName"/> |
24 | | - <fillField selector="{{AdminCreateUserSection.lastNameTextField}}" userInput="{{user.lastName}}" stepKey="enterLastName"/> |
25 | | - <fillField selector="{{AdminCreateUserSection.emailTextField}}" userInput="{{user.username}}@magento.com" stepKey="enterEmail"/> |
26 | | - <scrollToTopOfPage stepKey="scrollToTopOfPage"/> |
27 | | - <click stepKey="clickUserRole" selector="{{AdminCreateUserSection.userRoleTab}}"/> |
28 | | - <click stepKey="chooseRole" selector="{{AdminStoreSection.createdRoleInUserPage(role.name)}}"/> |
29 | | - <click stepKey="clickInfoRole" selector="{{AdminCreateUserSection.userInfoTab}}"/> |
| 21 | + <!--Open New Admin User Page. --> |
| 22 | + <amOnPage url="{{AdminNewUserPage.url}}" stepKey="navigateToNewAdminUser"/> |
| 23 | + <waitForPageLoad stepKey="waitForNewAdminUserPage"/> |
| 24 | + <!-- Fill admin user data. --> |
| 25 | + <fillField selector="{{AdminCreateUserSection.usernameTextField}}" userInput="{{user.username}}" stepKey="enterAdminUserName"/> |
| 26 | + <fillField selector="{{AdminCreateUserSection.firstNameTextField}}" userInput="{{user.firstName}}" stepKey="enterAdminFirstName"/> |
| 27 | + <fillField selector="{{AdminCreateUserSection.lastNameTextField}}" userInput="{{user.lastName}}" stepKey="enterAdminLastName"/> |
| 28 | + <fillField selector="{{AdminCreateUserSection.emailTextField}}" userInput="{{user.username}}@magento.com" stepKey="enterAdminEmail"/> |
| 29 | + <!-- Verify Current Admin User Identity via Adobe IMS. --> |
30 | 30 | <click selector="{{AdminCreateUserSection.confirmIdentity}}" stepKey="clickConfirmIdentity"/> |
31 | | - <wait time="10" stepKey="waitTenSeconds"/> |
32 | | - <switchToWindow userInput="Adobe ID" stepKey="switchToWindow"/> |
33 | | - <wait time="10" stepKey="waitTenSeconds"/> |
| 31 | + <wait time="10" stepKey="waitNewTabToLoad"/> |
| 32 | + <!-- Switch to the New tab. --> |
| 33 | + <switchToNextTab stepKey="switchToNextTab"/> |
| 34 | + <fillField selector="{{AdminCreateUserSection.password}}" userInput="{{password}}" stepKey="fillPassword"/> |
| 35 | + <click selector="{{AdminAdobeImsSignInSection.AdobeImsPasswordContinueButton}}" stepKey="clickPasswordContinue"/> |
| 36 | + <wait time="10" stepKey="waitTabToDisappear"/> |
| 37 | + <!-- Switch to the previous tab. --> |
| 38 | + <switchToPreviousTab userInput="1" stepKey="switchPreviousTab"/> |
| 39 | + <!-- Select Admin User Role. --> |
| 40 | + <click selector="{{AdminCreateUserSection.userRoleTab}}" stepKey="clickUserRole"/> |
| 41 | + <click selector="{{AdminStoreSection.createdRoleInUserPage(role.name)}}" stepKey="chooseRole"/> |
| 42 | + <!-- Save admin user. --> |
34 | 43 | <click selector="{{AdminCreateUserSection.saveButton}}" stepKey="clickSaveUser"/> |
35 | 44 | <waitForPageLoad stepKey="waitForSaveTheUser"/> |
36 | | - <see userInput="You saved the user." stepKey="seeSuccessMessage"/> |
37 | 45 | </actionGroup> |
38 | 46 | </actionGroups> |
0 commit comments