Test Case ID
TC-010
Test Case Name
Verify that the user can successfully change the password with valid credentials
Pre-Conditions
- The user must be logged in (refer to
TC-001for valid login credentials). - The user is on the Dashboard page:
https://opensource-demo.orangehrmlive.com/web/index.php/dashboard/index
Test Steps & Expected Results
| Step | Action | Expected Result |
|---|---|---|
| Step 1 |
Click on the user icon in the upper-right corner. |
The dropdown menu is displayed. |
| Step 2 |
Select the “Change Password” option from the dropdown. |
The 'Change Password' page or modal is displayed. |
| Step 3 |
Enter the current password in the “Current Password” field. Input: admin123
|
Current password is entered and masked. |
| Step 4 |
Enter a new password in the “New Password” field. Input: newpassword123
|
New password is entered and masked. |
| Step 5 |
Enter the same password in the “Confirm Password” field. Input: newpassword123
|
Confirm password is entered and masked. |
| Step 6 | Click on the “Save” button. | A success message (e.g., “Password changed successfully”) is displayed, and the password is updated. |
Post-Conditions
- The user should be able to log in using the new password.
- The old password should no longer be valid.