Skip to main content

Task 3: Notification Channel Controls (Global + Per Event)

Test Cases

IDScenarioExpected ResultStatus
T3-01Admin/HR opens notification settingsSettings load successfully
T3-02Non-Admin/HR opens settings APIsReturns 403
T3-03Disable global email toggleNo event sends email even if event email is enabled
T3-04Disable internal channel for one eventThat event creates no internal notification
T3-05Disable email channel for one eventThat event sends no email, internal still works if enabled
T3-06Re-enable channels and trigger eventDelivery resumes as configured
T3-07Save invalid payload/event keyReturns 422 validation error

Demo Walkthrough

  1. Login as Admin → Go to Notification Settings → Show all toggles
  2. Disable email for one event → Trigger that event → Show no email in smtp4dev but internal notification appears
  3. Re-enable → Trigger again → Show email is now sent
  4. Login as Employee → Try to access notification settings → Show 403