jam-cloud/jam-ui/test/chat
Nuwan ceafe11225 test(10-01): add integration tests for unread badge behavior
Add comprehensive Playwright integration tests for chat unread badge:
- Badge visibility based on count (hidden at 0, visible with count)
- Badge text formatting (1-99, "99+" for 100+)
- Badge reset when window opened
- Badge increment logic (closed window vs different channel)
- Multiple message handling
- Badge state after page reload

Tests validate Redux state, localStorage persistence, and UI rendering.

Related to Phase 10 Plan 1: Read/Unread Status Validation & Testing

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-27 21:59:55 +05:30
..
chat-button.spec.ts test(08-03): add integration tests for chat button 2026-01-27 14:20:52 +05:30
chat-window.spec.ts test(08-01): add integration tests for chat window open/close 2026-01-27 13:37:31 +05:30
localStorage-persistence.spec.ts test(10-01): add integration tests for unread badge behavior 2026-01-27 21:59:55 +05:30
receive-message.spec.ts test(09-02): add integration tests for receive message flow 2026-01-27 19:48:16 +05:30
send-message.spec.ts test(09-02): add integration tests for send message flow 2026-01-27 19:47:50 +05:30
unread-badge.spec.ts test(10-01): add integration tests for unread badge behavior 2026-01-27 21:59:55 +05:30