Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
|
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- -->
-
- <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
- <actionGroup name="AdminCreateUserActionGroup">
- <annotations>
- <description>Goes to the Admin Users grid page. Clicks on Create User. Fills in the provided Role and User.</description>
- </annotations>
- <arguments>
- <argument name="role"/>
- <argument name="User" defaultValue="newAdmin"/>
- </arguments>
-
- <amOnPage url="{{AdminUsersPage.url}}" stepKey="amOnAdminUsersPage"/>
- <waitForPageLoad stepKey="waitForAdminUserPageLoad"/>
- <click selector="{{AdminCreateUserSection.create}}" stepKey="clickToCreateNewUser"/>
- <fillField selector="{{AdminEditUserSection.usernameTextField}}" userInput="{{User.username}}" stepKey="enterUserName"/>
- <fillField selector="{{AdminEditUserSection.firstNameTextField}}" userInput="{{User.firstName}}" stepKey="enterFirstName"/>
- <fillField selector="{{AdminEditUserSection.lastNameTextField}}" userInput="{{User.lastName}}" stepKey="enterLastName"/>
- <fillField selector="{{AdminEditUserSection.emailTextField}}" userInput="{{User.username}}@magento.com" stepKey="enterEmail"/>
- <fillField selector="{{AdminEditUserSection.passwordTextField}}" userInput="{{User.password}}" stepKey="enterPassword"/>
- <fillField selector="{{AdminEditUserSection.pwConfirmationTextField}}" userInput="{{User.password}}" stepKey="confirmPassword"/>
- <fillField selector="{{AdminEditUserSection.currentPasswordField}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}" stepKey="enterCurrentPassword"/>
- <scrollToTopOfPage stepKey="scrollToTopOfPage"/>
- <click selector="{{AdminEditUserSection.userRoleTab}}" stepKey="clickUserRole"/>
- <waitForPageLoad stepKey="waitForAdminUserRoleTabLoad"/>
- <fillField selector="{{AdminEditUserSection.roleNameFilterTextField}}" userInput="{{role.name}}" stepKey="filterRole"/>
- <click selector="{{AdminEditUserSection.searchButton}}" stepKey="clickSearch"/>
- <waitForPageLoad stepKey="waitForLoadingMaskToDisappear1"/>
- <click selector="{{AdminEditUserSection.searchResultFirstRow}}" stepKey="selectRole"/>
- <click selector="{{AdminEditUserSection.saveButton}}" stepKey="clickSaveUser"/>
- <waitForPageLoad stepKey="waitForPageLoad2"/>
- <see userInput="You saved the user." stepKey="seeSuccessMessage"/>
- </actionGroup>
- </actionGroups>
|