You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: parameter test fixes from the #26357 (test: Join and Create) review - #26489
Four commits, all in bigbluebutton-tests/playwright. No test is added or removed, so the per-PR gate and the nightly keep their test counts.
The userdata-bbb_hide_notifications test can now fail. It ended with hasElementCount(e.toastContainer, 0), which waits until no toast is left. The raised hand toast closes itself after 5 s, within that wait, so the check passed whether the moderator with the parameter had been shown the toast or not. The test now looks for a toast as soon as that moderator lists the raised hand, and for 2 s after. The toast and the list come from the same RAISED_HAND_USERS subscription.
Slide preloading is checked by the requests it makes. The slidePreloading tests read public.app.preloadNextSlides, so they checked the setting, not what the client does. They now record the slide SVGs the page requests from before it joins, and check whether slide 2 is requested while slide 1 is shown. With preloading on, the client requests slides 2 and 3 before the image of slide 1 (presentation/container.jsx). With disabledFeatures=slidePreloading it requests slide 1 only.
Clearer failures. The guest tests that rely on authenticatedGuest=true, the bbb-web default, name it in the assertion that fails first without it. testMetadataNames fails on an assertion instead of a TypeError when getMeetingInfo returns no metadata.
Shared helpers.lockSettings.ts and meetingParameters.ts use userListRowOf and privateChatOptionOf from user/util.ts instead of their own copies. The selectors are the same.
No skips for server settings. The emoji picker and breakoutRoomsRecord tests do not need allowOverrideClientSettingsOnCreateCall. They use clientSettingsOverrides, which patches the client settings in the browser and never reaches bbb-web, and they pass on a server with that flag off. The guest tests fail with the setting named (item 3) rather than skip, since CI runs bbb-web with the default.
The random voiceBridge of the session details test stays. The nightly config retries a failed test once, which picks a new number.
The recording indicator is still matched by its aria-label, read from en.json. The client gives the indicator no other attribute that shows its state; adding one would be a client change.
Cost
The nightly of 2026-11-10 was the first to run #26357. Its recording-livekit test step took 72.5 min, up from 41.6 to 45.6 min on the four nights before. It ran 256 tests instead of 146: 61 from #26357 and 49 from #26276. The step's limit is 150 min. This PR adds about 2 s, the time the toast is watched for.
How to test
cd bigbluebutton-tests/playwright
npx playwright test --project=chromium api/api.spec.ts -g "Create and join parameters"
npx playwright test --project=chromium --grep-invert @known-issue parameters/disabledFeaturesValues.spec.ts \
parameters/lockSettings.spec.ts parameters/meetingParameters.spec.ts parameters/userdataParameters.spec.ts
To see that the two reworked checks can fail, run each where it should fail: the hide_notifications test without JOIN_PARAMETERS.hideNotifications in its initModPage, and each slide preloading check on the other test's meeting.
Testing
On a 4.0 server with packages built from v4.0.x-develop7e07c4a (bbb-web a292490), LiveKit, allowOverrideClientSettingsOnCreateCall off and authenticatedGuest at its default; Chromium, retries off, TIMEOUT_MULTIPLIER=3:
Run
Result
The 61 @nightly tests of #26357: the changed specs and recordingParameters.spec.ts
all passed
hide_notifications test, 3 rounds
passed 3 of 3
The same without the parameter, with the old check
passed 3 of 3, so the old check could not fail
The same without the parameter, with the new check
failed 3 of 3, at "should not display any toast"
Both slide preloading tests, 3 rounds
passed 3 of 3 each
Each slide preloading check on the other test's meeting
failed 3 of 3 each, at its slide 2 assertion
tsc, eslint and prettier --check are clean. The guest tests were not run with authenticatedGuest=false; on that path the change is only the text of the failing assertion.
The userdata-bbb_hide_notifications test ended with hasElementCount on
the toasts with a count of 0, which waits until no toast is left. A
toast closes itself after 5 s (common/toast/container.jsx), well within
that wait (5 s times TIMEOUT_MULTIPLIER), so the check passed whether
the moderator with the parameter had been shown the raised hand toast
or not. Run without the parameter, the test still passed, 3 times out
of 3 on a 4.0 server.
The check now looks for a toast as soon as that moderator lists the
raised hand, and for 2 s after. The toast and the list come from the
same RAISED_HAND_USERS subscription (raisehand-notifier and
user-list/raised-hands), so the toast would be on screen by then.
Without the parameter the test now fails on that check, 3 times out of
3; with it, it passes.
The two slidePreloading tests read public.app.preloadNextSlides from
the client settings. That showed akka-apps sets it to 0 for
disabledFeatures=slidePreloading, not that the client then stops
loading the next slides.
They now record the slide SVGs the page requests, from before it joins.
When the client shows a slide, it fetches the SVGs of the next slides
before it even requests the image of the slide it shows
(presentation/container.jsx). With the default presentation, which has
15 pages, it requests slides 2 and 3 before slide 1. With
slidePreloading disabled it requests only slide 1, and slide 2 once
the presenter moves to it. So both tests wait until slide 1 has been
requested, then check whether slide 2 was.
Each check fails when run on the other kind of meeting, 3 times out of
3.
The ALWAYS_ACCEPT_AUTH, auth= and guest promotion tests rely on
authenticatedGuest=true, the bbb-web default. With it off, bbb-web
sets the guest status from guest= alone
(Meeting.getUnauthenticatedGuestStatus), so ALWAYS_ACCEPT_AUTH admits
guests and ASK_MODERATOR admits a viewer without guest=, and the client
offers to promote any guest (user-list-participants/list-item/
service.ts). On such a server these tests failed on an assertion that
did not say why. The assertion that fails first now names the setting.
The tests still fail rather than skip, since CI runs bbb-web with the
default.
testMetadataNames read the metadata of getMeetingInfo without a guard,
so a response without a metadata block threw a TypeError. Such a
response now fails the first assertion, with its message.
lockSettings.ts and meetingParameters.ts each had a copy of
userListRowOf, and lockSettings.ts also built privateChatOptionOf by
hand. Both now import the helpers from user/util.ts, so the selector of
a participants list row is defined in one place. The selectors are the
same.
A row is still found by its aria-label. The client sets it to the
user's name (user-list-participants/list-item/component.tsx), which is
test data, not interface text, so a translation does not change it.
The Playwright tests now handle missing meeting metadata, check slide requests to verify preloading, and use shared selectors for participant controls. The notification test observes for a raised-hand toast for up to two seconds. API assertions also document the authenticatedGuest=true condition.
This PR changes only Playwright parameter tests and has no production impact. The disabled slide-preloading check might be slightly less strict than ideal, so it can be merged with owner awareness.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title identifies parameter test fixes and links them to the review that prompted the changes.
Description check
The description explains the toast, slide-preloading, metadata, guest-setting, and shared-selector changes in the pull request.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 6 files.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
182-182: Minor · Functional Correctness · Quick win
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Observe requests before accepting that preloading is off.
If a slide 2 request occurs after the slide 1 request, this immediate assertion passes before it can record slide 2. The client’s preload fetch depends on nextPagesSvg, so the slide 1 request alone does not establish that the preload opportunity has passed. Observe requests for a bounded interval before asserting that slide 2 was not requested. (raw.githubusercontent.com)
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 1b0ddbc1-eb2d-4be0-8788-59d3de7f5d7f
Commits
Reviewing files that changed from the base of the PR and between 2177b8e and 64c825c.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Follows up on the review of #26357 (merged): #26357 (comment)
Four commits, all in
bigbluebutton-tests/playwright. No test is added or removed, so the per-PR gate and the nightly keep their test counts.userdata-bbb_hide_notificationstest can now fail. It ended withhasElementCount(e.toastContainer, 0), which waits until no toast is left. The raised hand toast closes itself after 5 s, within that wait, so the check passed whether the moderator with the parameter had been shown the toast or not. The test now looks for a toast as soon as that moderator lists the raised hand, and for 2 s after. The toast and the list come from the sameRAISED_HAND_USERSsubscription.slidePreloadingtests readpublic.app.preloadNextSlides, so they checked the setting, not what the client does. They now record the slide SVGs the page requests from before it joins, and check whether slide 2 is requested while slide 1 is shown. With preloading on, the client requests slides 2 and 3 before the image of slide 1 (presentation/container.jsx). WithdisabledFeatures=slidePreloadingit requests slide 1 only.authenticatedGuest=true, the bbb-web default, name it in the assertion that fails first without it.testMetadataNamesfails on an assertion instead of aTypeErrorwhengetMeetingInforeturns no metadata.lockSettings.tsandmeetingParameters.tsuseuserListRowOfandprivateChatOptionOffromuser/util.tsinstead of their own copies. The selectors are the same.From the review, not changed here
create,join,isMeetingRunningandendanswer HTTP 500 #26359 known-issue test expectsFAILED. That is the answer the issue asks for, quotingapi.md: "Errors are returned with areturncodevalue ofFAILED". A fix that answers differently would update the test.breakoutRoomsRecordtests do not needallowOverrideClientSettingsOnCreateCall. They useclientSettingsOverrides, which patches the client settings in the browser and never reaches bbb-web, and they pass on a server with that flag off. The guest tests fail with the setting named (item 3) rather than skip, since CI runs bbb-web with the default.voiceBridgeof the session details test stays. The nightly config retries a failed test once, which picks a new number.aria-label, read from en.json. The client gives the indicator no other attribute that shows its state; adding one would be a client change.Cost
The nightly of 2026-11-10 was the first to run #26357. Its
recording-livekittest step took 72.5 min, up from 41.6 to 45.6 min on the four nights before. It ran 256 tests instead of 146: 61 from #26357 and 49 from #26276. The step's limit is 150 min. This PR adds about 2 s, the time the toast is watched for.How to test
To see that the two reworked checks can fail, run each where it should fail: the hide_notifications test without
JOIN_PARAMETERS.hideNotificationsin itsinitModPage, and each slide preloading check on the other test's meeting.Testing
On a 4.0 server with packages built from
v4.0.x-develop7e07c4a (bbb-web a292490), LiveKit,allowOverrideClientSettingsOnCreateCalloff andauthenticatedGuestat its default; Chromium, retries off,TIMEOUT_MULTIPLIER=3:@nightlytests of #26357: the changed specs andrecordingParameters.spec.tstsc,eslintandprettier --checkare clean. The guest tests were not run withauthenticatedGuest=false; on that path the change is only the text of the failing assertion.