fix: test button not playing default sound in notification preferences
Merged
NA
6mo ago+92+92+01234567890123456789-3-3-0123456789
Proposed changes (including videos or screenshots)
- Added fallback to
newMessageNotificationuser preference when trying to play the default sound. - Added unit tests.
Issue(s)
SUP-1027 "test sound" button don't work for Default
Steps to test or reproduce
1- Be logged in as any user
2- Go to any room
3- Click on kebab menu (options)
4- Click notification preferences
5- Under the Desktop section, select the Default option in the Sound dropdown and click on the play button
Further comments
Summary by CodeRabbit
-
Bug Fixes
- Play button in Notification Preferences now resolves the desktop "default" sound to the user's selected notification sound (unless a specific desktop sound is chosen) and includes an accessible "Play" label.
-
Tests
- Added tests validating play-button behavior for default resolution, user-preference usage, and explicit desktop sound selection.