File tree Expand file tree Collapse file tree 3 files changed +46
-1
lines changed
app/code/Magento/User/Test/Mftf Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Original file line number Diff line number Diff line change
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 =" AdminDeleteCustomUserActionGroup" >
11
+ <arguments >
12
+ <argument name =" user" />
13
+ </arguments >
14
+ <amOnPage url =" {{AdminUsersPage.url}}" stepKey =" navigateToUserGrid" />
15
+ <fillField selector =" {{AdminUserGridSection.usernameFilterTextField}}" userInput =" {{user.username}}" stepKey =" enterUserName" />
16
+ <click selector =" {{AdminUserGridSection.searchButton}}" stepKey =" clickSearch" />
17
+ <waitForPageLoad stepKey =" waitForGridToLoad" />
18
+ <see selector =" {{AdminUserGridSection.usernameInFirstRow}}" userInput =" {{user.username}}" stepKey =" seeUser" />
19
+ <click selector =" {{AdminUserGridSection.searchResultFirstRow}}" stepKey =" openUserEdit" />
20
+ <waitForPageLoad stepKey =" waitForUserEditPageLoad" />
21
+ <fillField selector =" {{AdminEditUserSection.currentPasswordField}}" userInput =" {{_ENV.MAGENTO_ADMIN_PASSWORD}}" stepKey =" enterThePassword" />
22
+ <click selector =" {{AdminMainActionsSection.delete}}" stepKey =" deleteUser" />
23
+ <waitForElementVisible selector =" {{AdminConfirmationModalSection.message}}" stepKey =" waitForConfirmModal" />
24
+ <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" confirmDelete" />
25
+ <waitForPageLoad stepKey =" waitForSave" />
26
+ <see selector =" {{AdminMessagesSection.success}}" userInput =" You deleted the user." stepKey =" seeUserDeleteMessage" />
27
+ </actionGroup >
28
+ </actionGroups >
Original file line number Diff line number Diff line change 18
18
<data key =" lastName" >Smith</data >
19
19
<data key =" password" >admin123</data >
20
20
</entity >
21
+ <entity name =" Admin3" type =" user" >
22
+ <data key =" username" unique =" suffix" >admin3</data >
23
+ <data key =" firstname" >admin3</data >
24
+ <data key =" lastname" >admin3</data >
25
+ <
data key =
" email" unique =
" prefix" >
[email protected] </
data >
26
+ <data key =" password" >123123q</data >
27
+ <data key =" password_confirmation" >123123q</data >
28
+ <data key =" interface_local" >en_US</data >
29
+ <data key =" is_active" >true</data >
30
+ <data key =" current_password" >123123q</data >
31
+ <array key =" roles" >
32
+ <item >1</item >
33
+ </array >
34
+ </entity >
21
35
</entities >
Original file line number Diff line number Diff line change 6
6
*/
7
7
-->
8
8
<operations xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
- xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataOperation.xsd" >
9
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataOperation.xsd" >
10
10
<operation name =" CreateUser" dataType =" user" type =" create"
11
11
auth =" adminFormKey" url =" /admin/user/save/" method =" POST" successRegex =" /messages-message-success/" returnRegex =" " >
12
12
<contentType >application/x-www-form-urlencoded</contentType >
19
19
<field key =" interface_locale" >string</field >
20
20
<field key =" is_active" >boolean</field >
21
21
<field key =" current_password" >string</field >
22
+ <array key =" roles" >
23
+ <value >string</value >
24
+ </array >
22
25
</operation >
23
26
</operations >
You can’t perform that action at this time.
0 commit comments