Repository navigation
fix(video-provider): show raised hand indicator on audio-only tiles - #25220
Conversation
The raised hand indicator was only computed for GRID and STREAM tile types, so audio-only tiles never displayed it even though the user data (raiseHand) and the render path were already in place. Include the AUDIO_ONLY tile type in the raiseHand condition. Add a data-test hook to the indicator and an end-to-end test covering an audio-only tile raising its hand. Closes bigbluebutton#25169
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThis pull request fixes a bug where the raised hand indicator was not displayed on audio-only video tiles. The VideoListItem component was updated to include stream.user?.raiseHand in the raised-hand visibility condition for VIDEO_TYPES.STREAM and a test attribute was added to the raised-hand element. Test infrastructure was extended with new Playwright selectors, a settings flag, and fake-audio browser arg. A test helper and a new test case validate the raised-hand indicator appears on audio-only tiles. Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsStopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
bigbluebutton-tests/playwright/user/multiusers.ts (2)
205-240: 💤 Low valueDocument or verify the configuration dependency.
The test comments (line 208) state that
public.kurento.cameraSortingModes.showAudioOnlyOnFirstPagemust be enabled, but the test doesn't verify this configuration. If the setting is disabled in the test environment, the test will fail with an unclear error (audio-only tile won't appear).Consider adding a comment in the test file documentation or the test suite setup to ensure this configuration is enabled for the test environment.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@bigbluebutton-tests/playwright/user/multiusers.ts` around lines 205 - 240, The test raiseHandIndicatorOnAudioOnlyTile relies on the setting public.kurento.cameraSortingModes.showAudioOnlyOnFirstPage but never verifies it; add an explicit precondition check at the start of raiseHandIndicatorOnAudioOnlyTile (or in the test suite setup) that reads the runtime test config/environment and asserts the flag is true (or programmatically enables it), and if not present produce a clear skip/fail message explaining that showAudioOnlyOnFirstPage must be enabled so the audio-only tile appears; reference the test helper/init flow (initUserPage, modPage) to decide where to place the check and fail fast with a descriptive error if the flag is disabled.
226-229: ⚖️ Poor tradeoffConsider a more specific selector for audio-only tiles.
The current selector uses
webcamConnectingto identify audio-only tiles, butwebcamConnectingis also rendered for unhealthy/connecting video streams (component.tsx lines 537-539) and self-view disabled streams (lines 540-541). While the test is likely stable in this specific scenario, the selector could be fragile if the moderator's webcam is slow to connect or experiences health issues.Consider adding a more specific selector or filtering by the attendee's username to make the test more robust.
💡 Alternative approach using username filter
const audioOnlyTiles = this.modPage.page .locator(`${e.webcamItem}, ${e.webcamItemTalkingUser}`) - .filter({ has: this.modPage.page.locator(e.webcamConnecting) }); + .filter({ + has: this.modPage.page.locator(e.webcamConnecting) + }) + .filter({ hasText: this.userPage.username });🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@bigbluebutton-tests/playwright/user/multiusers.ts` around lines 226 - 229, The selector for audioOnlyTiles is too broad because it relies on e.webcamConnecting which also matches unhealthy/connecting or self-view-disabled streams; update the locator used in audioOnlyTiles (the modPage.page.locator call referencing e.webcamItem, e.webcamItemTalkingUser, and e.webcamConnecting) to be more specific—either add a filter by the target attendee username (use the attendee name element in the tile) or introduce a dedicated CSS/test-id that uniquely marks audio-only tiles and use that in the locator; then keep the expect assertion the same but target this narrower locator to avoid false positives when webcams are slow or unhealthy.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@bigbluebutton-tests/playwright/user/multiusers.ts`:
- Around line 205-240: The test raiseHandIndicatorOnAudioOnlyTile relies on the
setting public.kurento.cameraSortingModes.showAudioOnlyOnFirstPage but never
verifies it; add an explicit precondition check at the start of
raiseHandIndicatorOnAudioOnlyTile (or in the test suite setup) that reads the
runtime test config/environment and asserts the flag is true (or
programmatically enables it), and if not present produce a clear skip/fail
message explaining that showAudioOnlyOnFirstPage must be enabled so the
audio-only tile appears; reference the test helper/init flow (initUserPage,
modPage) to decide where to place the check and fail fast with a descriptive
error if the flag is disabled.
- Around line 226-229: The selector for audioOnlyTiles is too broad because it
relies on e.webcamConnecting which also matches unhealthy/connecting or
self-view-disabled streams; update the locator used in audioOnlyTiles (the
modPage.page.locator call referencing e.webcamItem, e.webcamItemTalkingUser, and
e.webcamConnecting) to be more specific—either add a filter by the target
attendee username (use the attendee name element in the tile) or introduce a
dedicated CSS/test-id that uniquely marks audio-only tiles and use that in the
locator; then keep the expect assertion the same but target this narrower
locator to avoid false positives when webcams are slow or unhealthy.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 93cf4be6-8a1c-4c5c-9fe7-791c86b0242f
⛔ Files ignored due to path filters (1)
bigbluebutton-tests/playwright/core/media/fakespeech.wavis excluded by!**/*.wav
📒 Files selected for processing (5)
bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/component.tsxbigbluebutton-tests/playwright/core/elements.tsbigbluebutton-tests/playwright/core/setup/browsersConfig.tsbigbluebutton-tests/playwright/user/multiusers.tsbigbluebutton-tests/playwright/user/user.spec.ts
Arthurk12
left a comment
There was a problem hiding this comment.
LGTM!
Only a minor adjustment left.
| async raiseHandIndicatorOnAudioOnlyTile() { | ||
| // Regression test for issue 25169: the raised hand indicator must also show | ||
| // on audio-only tiles, not only on webcam tiles. | ||
| // Requires `public.kurento.cameraSortingModes.showAudioOnlyOnFirstPage` enabled |
There was a problem hiding this comment.
This tests relies on a specific html5 client setting to be enabled. Please, add a propper check to run this test only when public.kurento.cameraSortingModes.showAudioOnlyOnFirstPage is enabled.
Just like it is done here:
bigbluebutton/bigbluebutton-tests/playwright/user/multiusers.ts
Lines 585 to 593 in 977c8b6
Address review feedback (Arthurk12): the audio-only tile only appears when public.kurento.cameraSortingModes.showAudioOnlyOnFirstPage is enabled. Expose that setting in the playwright settings helper and skip the test (instead of failing with an opaque "tile never appeared" error) when it is disabled, mirroring the existing pattern already used for other client-setting-dependent tests (e.g. emojiRainTest). Ref: bigbluebutton#25169
|
✅ Automated tests have passed! |
db19aed
into
bigbluebutton:v4.0.x-develop



What does this PR do?
Raising your hand draws the ✋ indicator (with queue position) on your video tile, but it was missing on audio-only tiles — the placeholder tiles shown for users who joined
with audio only (when
showAudioOnlyOnFirstPageis enabled). The hand still appeared in the participants list, just never on the tile itself.The
raiseHandflag was only computed forGRIDandSTREAMtiles; theAUDIO_ONLYcase was missing, so the indicator was suppressed.Closes Issue(s)
Closes #25169
How to test
Requires
public.kurento.cameraSortingModes.showAudioOnlyOnFirstPageenabled (default unified layout).An e2e Playwright test (
Raise hand indicator on audio-only tile) covers this. It feeds the fake mic a looping tone (fakespeech.wav) so the attendee actually takes the audiofloor. Fails before the fix, passes after.
More
claudio full notes and comments here: Tainan404#43