Skip to main content

Task 15: Probation Completion Workflow (Manual Trigger V1)

Test Cases

IDScenarioExpected ResultStatus
T15-01HR/Admin triggers probation review for active + probationary employeeReview is created in pending_manager_review, manager receives notification
T15-02Trigger review for non-probationary employeeReturns 422 validation error
T15-03Trigger while open review already existsReturns 422 (duplicate open review blocked)
T15-04Assigned manager submits full form with required signatureStatus moves to manager_submitted; average score/percentage stored
T15-05Manager submits with extend_probation and extension monthsSubmission succeeds with extension value persisted
T15-06Manager submits without signature on first submissionReturns 422
T15-07HR/Admin sends back submitted review with noteStatus moves to sent_back_to_manager; manager receives send-back alert
T15-08Manager re-submits after send-back (edit all fields)Submission succeeds and status returns to manager_submitted
T15-09HR/Admin approves with recommendation confirmEmployee becomes active + confirmed; review becomes hr_approved
T15-10HR/Admin approves with recommendation terminateEmployee becomes inactive + terminated
T15-11HR/Admin approves with recommendation extend_probationEmployee remains active + probationary; probation end date extended
T15-12Manager accesses non-assigned probation reviewReturns 403
T15-13Notification email includes probation review linkAfter login, user lands on probation review detail page

Demo Walkthrough

  1. Login as HR → Trigger probation review for a probationary employee → Show review created
  2. Login as Manager → Open the review → Fill form with signature → Submit
  3. Login as HR → Review submission → Send back with a note
  4. Login as Manager → Edit and resubmit
  5. Login as HR → Approve with "Confirm" → Show employee lifecycle changes to Confirmed
  6. Try triggering for a non-probationary employee → Show 422