codeforpdx / PASS

PASS project - with HMIS module integration
MIT License
30 stars 26 forks source link

Enhancement: Add More Test Coverage to Unread Message Count #491

Closed bingeboy closed 10 months ago

bingeboy commented 11 months ago

Current Behavior/Feature:

When there are unread messages there is an unread count badge on the mail icon of the navigation. This needs to have test coverage to verify that the count is being updated properly.

Proposed Behavior/Feature:

Add a test covering the functionality when clicking on a unread message the count it update on the badge

Rationale:

Good to have test coverage so when features are added in the future we can verify the message count is still working.

Proposed Implementation (if applicable):

Add tests to the Messages.test.jsx

Additional context:

@leekahung and @timbot1789 are aware of this issue and should be part of the peer review.

bingeboy commented 10 months ago

Merged https://github.com/codeforpdx/PASS/commit/6d9c4c3cb9a46a16e21d6b13e1450bdb5806b6d0