-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementImprovements or additions to existing feature/codeImprovements or additions to existing feature/code
Description
Summary of Improvement
Add UI and unit tests for the NotificationScreen and NotificationViewModel introduced by #22.
Current Implementation
Currently, there are no tests covering the NotificationScreen composable or the associated NotificationViewModel. This makes it difficult to ensure UI correctness, especially during refactors or feature additions.
Proposed Solution
-
Create a test class for
NotificationViewModelthat verifies:- Initial UI state
- Notification loading behavior
- Read/unread status updates
- Edge cases like empty or failed notification lists
-
Create an instrumented test for
NotificationScreenthat verifies:- UI renders correctly with sample data
- Click events navigate or respond appropriately
- Unread badge visibility logic works as expected
The structure and strategy should follow existing patterns in:
SetupViewModelTestLoginViewModelTestSetupScreenTestLoginScreenTest
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementImprovements or additions to existing feature/codeImprovements or additions to existing feature/code