Test Case ID
TC-019
Test Case Name
Verify that the admin can add a new user
Pre-Conditions
- The admin must be logged in (refer to TC-001 for valid login credentials)
- The admin is on the Dashboard page
Test Steps & Expected Results
| Step | Action | Expected Result |
|---|---|---|
| Step 1 | Click on the "Admin" option from the left sidebar. | The Admin Management page is displayed. |
| Step 2 | Click on the "Add User" button. | The "Add User" form is displayed. |
| Step 3 |
Select a user role from the "User Role" dropdown. Input: ESS
|
User role is selected and visible. |
| Step 4 |
Input the employee's name in the "Employee Name" field. Input: John Smith
|
Employee name is entered and visible. |
| Step 5 |
Select the status from the "Status" dropdown. Input: Enabled
|
Status is selected and visible. |
| Step 6 |
Input a valid username in the "Username" field. Input: newuser
|
Username is entered and visible. |
| Step 7 |
Input a valid password in the "Password" field. Input: Admin123!
|
Password is entered, visible, and covered in dots. |
| Step 8 |
Confirm the password in the "Confirm Password" field. Input: Admin123!
|
Password confirmation is entered and visible. |
| Step 9 | Click on the "Save" button. | A success message is displayed, indicating the user has been added. The new user appears in the user list. |
Post-Conditions
- The new user is added successfully and visible in the users list.
- The admin can log out and the new user can log in with their credentials.