Implement foreground push filtering to suppress banners for active chatroom - #784
Conversation
8dc5c0d to
eea46dd
Compare
|
| expect(filter.shouldShow(roomX), isTrue); | ||
| expect(filter.shouldShow(const {}), isTrue); | ||
| }); | ||
|
|
There was a problem hiding this comment.
Integration coverage is missing
These tests cover the filter registry in isolation, but they do not mount GroupChatScreen to exercise the route, lifecycle, room-targeting, and disposal conditions that control actual suppression. A widget test for an active matching room, a covered or backgrounded screen, and claim release during disposal would prevent regressions that hide unrelated notifications or show banners for the active chat.
Prompt To Fix With AI
This is a comment left during a code review.
Path: test/features/push_notifications/foreground_push_filter_test.dart
Line: 15-18
Comment:
**Integration coverage is missing**
These tests cover the filter registry in isolation, but they do not mount `GroupChatScreen` to exercise the route, lifecycle, room-targeting, and disposal conditions that control actual suppression. A widget test for an active matching room, a covered or backgrounded screen, and claim release during disposal would prevent regressions that hide unrelated notifications or show banners for the active chat.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
433cafd to
cbf1a2f
Compare
cbf1a2f to
4442d2c
Compare
No description provided.