File tree Expand file tree Collapse file tree 5 files changed +34
-26
lines changed
Braintree/Test/Mftf/ActionGroup
Customer/Test/Mftf/ActionGroup Expand file tree Collapse file tree 5 files changed +34
-26
lines changed Original file line number Diff line number Diff line change 38
38
<waitForPageLoad stepKey =" waitForSaveUser" time =" 10" />
39
39
<see userInput =" You saved the user." stepKey =" seeSuccessMessage" />
40
40
</actionGroup >
41
- <!-- Delete User-->
42
- <actionGroup name =" AdminDeleteNewUserActionGroup" >
43
- <arguments >
44
- <argument name =" userName" type =" string" defaultValue =" John" />
45
- </arguments >
46
- <click stepKey =" clickOnUser" selector =" {{AdminDeleteUserSection.theUser(userName)}}" />
47
- <fillField stepKey =" typeCurrentPassword" selector =" {{AdminDeleteUserSection.password}}" userInput =" {{_ENV.MAGENTO_ADMIN_PASSWORD}}" />
48
- <scrollToTopOfPage stepKey =" scrollToTop" />
49
- <click stepKey =" clickToDeleteUser" selector =" {{AdminDeleteUserSection.delete}}" />
50
- <waitForPageLoad stepKey =" waitForDeletePopupOpen" time =" 5" />
51
- <click stepKey =" clickToConfirm" selector =" {{AdminDeleteUserSection.confirm}}" />
52
- <waitForPageLoad stepKey =" waitForPageLoad" time =" 10" />
53
- <see userInput =" You deleted the user." stepKey =" seeSuccessMessage" />
54
- </actionGroup >
55
41
</actionGroups >
Original file line number Diff line number Diff line change 16
16
<see userInput =" You have logged out." stepKey =" seeSuccessMessage" />
17
17
<waitForElementVisible selector =" //*[@data-ui-id='messages-message-success']" stepKey =" waitForSuccessMessageLoggedOut" time =" 5" />
18
18
</actionGroup >
19
-
20
- <!-- Login New User-->
21
- <actionGroup name =" LoginNewUser" >
22
- <arguments >
23
- <argument name =" user" defaultValue =" NewAdmin" />
24
- </arguments >
25
- <amOnPage url =" {{_ENV.MAGENTO_BACKEND_NAME}}" stepKey =" navigateToAdmin" />
26
- <fillField userInput =" {{user.username}}" selector =" {{LoginFormSection.username}}" stepKey =" fillUsername" />
27
- <fillField userInput =" {{user.password}}" selector =" {{LoginFormSection.password}}" stepKey =" fillPassword" />
28
- <click selector =" {{LoginFormSection.signIn}}" stepKey =" clickLogin" />
29
- </actionGroup >
30
19
</actionGroups >
Original file line number Diff line number Diff line change 21
21
<click stepKey =" clickToConfirm" selector =" {{AdminDeleteUserSection.confirm}}" />
22
22
<see stepKey =" seeDeleteMessageForUser" userInput =" You deleted the user." />
23
23
</actionGroup >
24
+ <!-- Delete User-->
25
+ <actionGroup name =" AdminDeleteNewUserActionGroup" >
26
+ <arguments >
27
+ <argument name =" userName" type =" string" defaultValue =" John" />
28
+ </arguments >
29
+ <click stepKey =" clickOnUser" selector =" {{AdminDeleteUserSection.theUser(userName)}}" />
30
+ <fillField stepKey =" typeCurrentPassword" selector =" {{AdminDeleteUserSection.password}}" userInput =" {{_ENV.MAGENTO_ADMIN_PASSWORD}}" />
31
+ <scrollToTopOfPage stepKey =" scrollToTop" />
32
+ <click stepKey =" clickToDeleteUser" selector =" {{AdminDeleteUserSection.delete}}" />
33
+ <waitForPageLoad stepKey =" waitForDeletePopupOpen" time =" 5" />
34
+ <click stepKey =" clickToConfirm" selector =" {{AdminDeleteUserSection.confirm}}" />
35
+ <waitForPageLoad stepKey =" waitForPageLoad" time =" 10" />
36
+ <see userInput =" You deleted the user." stepKey =" seeSuccessMessage" />
37
+ </actionGroup >
24
38
</actionGroups >
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
+ <!-- Login New User-->
11
+ <actionGroup name =" LoginNewUser" >
12
+ <arguments >
13
+ <argument name =" user" defaultValue =" NewAdmin" />
14
+ </arguments >
15
+ <amOnPage url =" {{_ENV.MAGENTO_BACKEND_NAME}}" stepKey =" navigateToAdmin" />
16
+ <fillField userInput =" {{user.username}}" selector =" {{LoginFormSection.username}}" stepKey =" fillUsername" />
17
+ <fillField userInput =" {{user.password}}" selector =" {{LoginFormSection.password}}" stepKey =" fillPassword" />
18
+ <click selector =" {{LoginFormSection.signIn}}" stepKey =" clickLogin" />
19
+ </actionGroup >
20
+ </actionGroups >
Original file line number Diff line number Diff line change 7
7
-->
8
8
<sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
9
9
<section name =" AdminEditRoleResourcesSection" >
10
- <element name =" roleScopes" type =" select" selector =" #gws_is_all" />
11
10
<element name =" resourceAccess" type =" select" selector =" #all" />
12
11
<element name =" resources" type =" checkbox" selector =" #role_info_tabs_account" />
13
12
<element name =" storeName" type =" checkbox" selector =" //label[contains(text(),'{{var1}}')]" parameterized =" true" />
You can’t perform that action at this time.
0 commit comments