Test Case ID
TC-054
Test Case Name
Verify that the admin can assign leave to an employee
Pre-Conditions
- The admin must be logged in (refer to TC-001 for valid login credentials).
- The admin must have access to the Leave Management module.
Test Steps & Expected Results
| Step | Action | Expected Result | 
|---|---|---|
| Step 1 | Navigate to the left sidebar and click on "Leave". | The Leave Management page is displayed, and the "Leave List" is open by default. | 
| Step 2 | On the "Leave List" page, click on the "Assign Leave" button located at the top-right corner of the page. | The "Assign Leave" form is opened. | 
| Step 3 | In the "Employee Name" field, enter a valid employee name and select the employee from the
                            dropdown suggestions. Input: Linda Anderson | The employee name is successfully entered and selected. | 
| Step 4 | In the "Leave Type" dropdown, select a valid leave type. Input: CAN - Personal | The selected leave type is displayed in the field. | 
| Step 5 | In the "From Date" field, select the start date for the leave using the date picker. Input: 21 Oct 2025 | The chosen date is displayed in the "From Date" field. | 
| Step 6 | In the "To Date" field, select the end date for the leave using the date picker. Input: 23 Oct 2025 | The chosen date is displayed in the "To Date" field. | 
| Step 7 | Enter a comment in the "Comments" field. Input: Annual leave for family trip | The comment is entered and visible. | 
| Step 8 | Click the "Assign" button to assign the leave. | A warning message is displayed - Balance not sufficient-
                            indicating that the selected employee does not have available leave days.Note: This behavior is expected in the demo environment. | 
Post-Conditions
- The leave is assigned successfully to the selected employee (Linda Anderson).
- The assigned leave details are stored in the system and reflected in the Leave List.
- A confirmation message is displayed to confirm successful leave assignment.