Skip to main content

Task 1: Internal Notification System Foundation

Demo Steps

Login as different roles to demonstrate notification delivery and isolation.

Test Cases

IDScenarioExpected ResultStatus
T1-01Trigger event employee_createdAll HR users get internal notification
T1-02Trigger event kpi_reviewer_assignedAssigned reviewer gets internal notification
T1-03Trigger event kpi_manager_review_submittedEvaluation owner (employee) gets internal notification
T1-04Trigger event kpi_dispute_escalatedAll HR users get internal notification
T1-05Open notifications listUser sees only own notifications (not others)
T1-06Mark single notification as readItem is_read=true, unread count decreases
T1-07Mark all notifications as readAll unread become read, unread count becomes 0
T1-08Unauthenticated request to notifications APIsReturns 401

Demo Walkthrough

  1. Login as Admin → Create a new employee → Switch to HR login → Verify notification appeared
  2. Show notification bell → Click to open dropdown → Click one notification → Verify it marks as read
  3. Click "Mark All as Read" → Verify unread count becomes 0
  4. Open browser incognito → Hit /api/notifications without login → Show 401 response