Skip to main content

Task 10: Dispute Escalation to HR (Post-Dispute Action)

Test Cases

IDScenarioExpected ResultStatus
T10-01Employee disputes once from manager_reviewedStatus changes to disputed
T10-02Employee escalates after manager re-review (manager_reviewed + dispute_count=1)API returns success; status remains manager_reviewed
T10-03Escalation action executedAudit row action=escalated_to_hr is created
T10-04Escalation sent to HRAll HR users receive internal notification
T10-05Escalation sent to HR with email enabledEmail is delivered per channel settings
T10-06Employee tries second escalationReturns 422 (already escalated)
T10-07Employee tries escalation before post-dispute manager reviewReturns 422
T10-08Manager/TeamLead tries escalation endpointReturns 403
T10-09After first dispute (disputed), employee response sectionEscalate button is visible but disabled until manager re-review

Demo Walkthrough

  1. Complete evaluation up to manager review → Employee disputes
  2. Manager re-reviews → Employee now sees "Escalate to HR" button
  3. Employee escalates → Show HR receives notification
  4. Try escalating again → Show 422 (already escalated)
  5. Login as Manager → Try escalation endpoint → Show 403