Stage 11 of 17
In this stage you will work through 12 test cases covering the full end-to-end leave request process: submission, validation, approval, rejection, cancellation, status visibility, and security. Every requirement should have at least one test case.
Why Are We Doing This?
Test Type
End-to-end functional testing
Test Environment
Live system with sample data
Tester
IT Manager (Marcus Webb) with HR sign-off (Rachel Okonkwo)
Pass Criteria
All 12 test cases pass. No Must Have requirements unmet.
Note: TC-004 and TC-005 require two email accounts (one for the employee, one for the manager). If you only have one account, use a personal email address as the manager email for testing.
Submit a valid leave request
Preconditions
Leave Requests list exists. Power Apps app is open. Power Automate flow is active. User is signed in.
Test Steps
Expected Result
A success notification appears. The app navigates to My Requests. The new request appears in the gallery with Status = Submitted. An approval email arrives at the manager email address.
Pass criteria: Record in list with Status = Submitted. Approval email received. Working Days = 5.
Attempt to submit with missing start date
Preconditions
Power Apps app is open on the New Request screen.
Test Steps
Expected Result
The Submit button is disabled (greyed out). A validation error label is visible: "Please select a start date."
Pass criteria: Submit button is disabled. Error label is visible.
Attempt to submit with end date before start date
Preconditions
Power Apps app is open on the New Request screen.
Test Steps
Expected Result
The Submit button is disabled. A validation error label is visible: "End date cannot be before start date."
Pass criteria: Submit button is disabled. Correct error label is visible.
Manager approves a request
Preconditions
A Submitted request exists (from TC-001 or a new submission). The approval email has been received.
Test Steps
Expected Result
Flow run shows Succeeded. List record: Status = Approved, Approver = your name, Decision Date = today, Approver Comments = "Approved — have a great holiday." Employee notification email received. App shows Status = Approved.
Pass criteria: All four approval fields updated. Employee notification received. App reflects correct status.
Manager rejects a request with comments
Preconditions
A new Submitted request exists. Approval email received.
Test Steps
Expected Result
Flow run shows Succeeded. List record: Status = Rejected, Approver Comments = the rejection comment. Employee notification email received and includes the manager's comment.
Pass criteria: Rejection comment visible in list record and in employee notification email.
Employee views their own requests only
Preconditions
At least two employees have submitted requests. You have access to two different user accounts.
Test Steps
Expected Result
Employee A sees only their own requests. Employee B sees only their own requests. Neither employee sees the other's requests.
Pass criteria: Gallery filtered correctly for each user. No cross-user data visible.
Employee cancels a submitted request
Preconditions
A Submitted request exists. The approval email has been received but not yet responded to.
Test Steps
Expected Result
A confirmation dialog appeared. After confirmation, the app navigated back to My Requests. The request now shows Status = Cancelled. The list record shows Status = Cancelled.
Pass criteria: Status updated to Cancelled in app and in list.
Request status updates in the app after flow runs
Preconditions
A Submitted request exists. The flow has run and updated the status to Approved.
Test Steps
Expected Result
The request shows Status = Approved after the flow has run. The gallery refreshes automatically when the screen is navigated to.
Pass criteria: Status reflects the flow's update without requiring the user to restart the app.
Approval comments visible in Request Details
Preconditions
A request has been approved or rejected with comments.
Test Steps
Expected Result
The Decision section is visible. Approver name, Decision Date, and Approver Comments are all displayed correctly.
Pass criteria: All three decision fields visible and correct.
HR administrator can see all requests
Preconditions
Multiple employees have submitted requests. HR user account has been added to the Site Visitors group.
Test Steps
Expected Result
All requests visible. Status filter works correctly. Employee name search works correctly.
Pass criteria: HR user can see all requests. Filter and search function correctly.
Save as Draft does not trigger the approval flow
Preconditions
Power Apps app is open on the New Request screen. Power Automate flow is active.
Test Steps
Expected Result
Draft record created with Status = Draft. No approval email sent. Power Automate run history shows either no new run, or a run that terminated at the status condition (Succeeded).
Pass criteria: Draft saved. No approval email sent. Flow did not proceed past the status condition.
Permission check — employee cannot access Administration screen
Preconditions
A regular employee account (not HR or admin) is available.
Test Steps
Expected Result
The Administration button is not visible on the Home screen for regular employees. If the user navigates directly to the screen, they see all requests (this is the known client-side limitation — true isolation requires item-level permissions).
Pass criteria: Admin button not visible for regular employees. This test documents the known limitation of client-side security.
| Test ID | Title | Result | Notes |
|---|---|---|---|
| TC-001 | Submit a valid leave request | PassFail | Record any issues here |
| TC-002 | Attempt to submit with missing start date | PassFail | Record any issues here |
| TC-003 | Attempt to submit with end date before start date | PassFail | Record any issues here |
| TC-004 | Manager approves a request | PassFail | Record any issues here |
| TC-005 | Manager rejects a request with comments | PassFail | Record any issues here |
| TC-006 | Employee views their own requests only | PassFail | Record any issues here |
| TC-007 | Employee cancels a submitted request | PassFail | Record any issues here |
| TC-008 | Request status updates in the app after flow runs | PassFail | Record any issues here |
| TC-009 | Approval comments visible in Request Details | PassFail | Record any issues here |
| TC-010 | HR administrator can see all requests | PassFail | Record any issues here |
| TC-011 | Save as Draft does not trigger the approval flow | PassFail | Record any issues here |
| TC-012 | Permission check — employee cannot access Administration screen | PassFail | Record any issues here |
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.