Skip to main content

Task 5: Employee Status Model + KPI Post-Publish Protection

Test Cases

IDScenarioExpected ResultStatus
T5-01Create employee with valid combos (active+probationary, active+confirmed, inactive+resigned, inactive+terminated)Saved successfully
T5-02Create/update employee with invalid combo (active+resigned or active+terminated)Returns 422 with validation error
T5-03Employee list filter by activity statusOnly matching active/inactive records shown
T5-04Employee list filter by lifecycleOnly matching lifecycle records shown
T5-05Employee export CSVIncludes both Activity Status and Lifecycle columns
T5-06Publish KPI cycle with mixed employee statesEvaluations created only for active+confirmed employees
T5-07After publish, change employee to non-eligible stateEvaluation becomes non-actionable
T5-08Try blocked actions on non-actionable evaluationSelf submit/review submit/employee response/reviewer assign/force finalize all blocked
T5-09KPI dashboard pending/disputed/unassigned listsNon-eligible employees are excluded from actionable counters/lists
T5-10Regression check for eligible employee flowactive+confirmed employee can complete normal KPI workflow

Demo Walkthrough

  1. Create employee with active+confirmed → Show success
  2. Try creating with active+terminated → Show 422 error
  3. Filter employee list by Activity Status → Show correct filtering
  4. Publish KPI cycle with mixed employees → Show only eligible ones get evaluations
  5. Change an employee to inactive → Show their evaluation becomes blocked