Skip to content

Commit bd5b734

Browse files
glo74186Manjusha.S
authored andcommitted
MQE-3395 did required changes
1 parent 67b11c4 commit bd5b734

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

app/code/Magento/Backend/Test/Mftf/Section/AdminSystemAccountSection.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@
1111
<section name="AdminSystemAccountSection">
1212
<element name="interfaceLocale" type="select" selector="#interface_locale"/>
1313
<element name="currentPassword" type="text" selector="#current_password"/>
14+
<element name="username" type="text" selector="#username"/>
15+
<element name="newPassword" type="text" selector="#password"/>
16+
<element name="passwordConfirmation" type="text" selector="#confirmation"/>
1417
</section>
1518
</sections>

app/code/Magento/Security/Test/Mftf/ActionGroup/AdminResetPasswordActionGroup.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<click selector="{{AdminMainActionsSection.save}}" stepKey="clickSaveUser"/>
1616
<waitForPageLoad stepKey="waitForPageLoad"/>
1717
<see userInput="This is a required field." stepKey="seeRequiredField1"/>
18-
<fillField selector="{{AdminSystemAccountSection.currentPassword}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}Invalid" stepKey="fillWrongPassword"/>
18+
<fillField selector="{{AdminSystemAccountSection.currentPassword}}" userInput="{{_CREDS.magento/MAGENTO_ADMIN_PASSWORD}}Invalid" stepKey="fillWrongPassword"/>
1919
<click selector="{{AdminMainActionsSection.save}}" stepKey="clickSaveUser1"/>
2020
<waitForPageLoad stepKey="waitForPageLoad1"/>
2121
<scrollToTopOfPage stepKey="scrollToTopOfPage"/>
@@ -27,4 +27,5 @@
2727
<see selector="{{AdminMessagesSection.success}}" userInput="You saved the account." stepKey="seeSuccessMessage"/>
2828

2929
</actionGroup>
30-
</actionGroups>
30+
</actionGroups>
31+

app/code/Magento/Security/Test/Mftf/ActionGroup/AdminResetPasswordUsingOldPasswordActionGroup.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,18 @@
1414
<click selector="{{AdminEditUserSection.saveButton}}" stepKey="clickSaveUser"/>
1515
<waitForPageLoad stepKey="waitForPageLoad"/>
1616
<see userInput="This is a required field." stepKey="seeRequiredField"/>
17-
<fillField selector="{{AdminEditUserSection.currentPasswordField}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}Invalid" stepKey="enterWrongPassword"/>
17+
<fillField selector="{{AdminEditUserSection.currentPasswordField}}" userInput="{{_CREDS.magento/MAGENTO_ADMIN_PASSWORD}}Invalid" stepKey="enterWrongPassword"/>
1818
<click selector="{{AdminEditUserSection.saveButton}}" stepKey="clickSaveUser1"/>
1919
<waitForPageLoad stepKey="waitForPageLoad1"/>
2020
<scrollToTopOfPage stepKey="scrollToTopOfPage"/>
2121
<see userInput="The password entered for the current user is invalid. Verify the password and try again." stepKey="seeErrorMessage"/>
2222
<fillField selector="{{AdminEditUserSection.passwordTextField}}" userInput="123123aaa" stepKey="enterPassword1"/>
2323
<fillField selector="{{AdminEditUserSection.pwConfirmationTextField}}" userInput="123123aaa" stepKey="confirmPassword1"/>
24-
<fillField selector="{{AdminEditUserSection.currentPasswordField}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}" stepKey="enterCurrentPassword"/>
24+
<fillField selector="{{AdminEditUserSection.currentPasswordField}}" userInput="{{_CREDS.magento/MAGENTO_ADMIN_PASSWORD}}" stepKey="enterCurrentPassword"/>
2525
<click selector="{{AdminEditUserSection.saveButton}}" stepKey="clickSaveUser2"/>
2626
<waitForPageLoad stepKey="waitForPageLoad2"/>
2727
<see userInput="You saved the user." stepKey="seeSuccessMessage"/>
2828

2929
</actionGroup>
30-
</actionGroups>
30+
</actionGroups>
31+

0 commit comments

Comments
 (0)