Skip to content

test: parameter test fixes from the #26357 (test: Join and Create) review - #26489

Open
antobinary wants to merge 4 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:test-400-parameter-tests-review-fixes
Open

antobinary wants to merge 4 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:test-400-parameter-tests-review-fixes

Conversation

@antobinary

Copy link
Copy Markdown
Member

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.

From the review, not changed here

  • The API: a repeated query parameter makes create, join, isMeetingRunning and end answer HTTP 500 #26359 known-issue test expects FAILED. That is the answer the issue asks for, quoting api.md: "Errors are returned with a returncode value of FAILED". A fix that answers differently would update the test.
  • 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-develop 7e07c4a (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.
@antobinary antobinary added this to the Release 4.0 milestone Nov 10, 2026
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

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.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Merge Risk: Low · up to 64c82

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: Passed 5

Check name Status Explanation
Title check Passed The title identifies parameter test fixes and links them to the review that prompted the changes.
Description check Passed The description explains the toast, slide-preloading, metadata, guest-setting, and shared-selector changes in the pull request.
Docstring Coverage Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional comments: 1

bigbluebutton-tests/playwright/parameters/disabledFeaturesValues.ts-182-182: 1

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.

Files selected for processing: 6

  • bigbluebutton-tests/playwright/api/parameters.ts
  • bigbluebutton-tests/playwright/parameters/disabledFeaturesValues.spec.ts
  • bigbluebutton-tests/playwright/parameters/disabledFeaturesValues.ts
  • bigbluebutton-tests/playwright/parameters/lockSettings.ts
  • bigbluebutton-tests/playwright/parameters/meetingParameters.ts
  • bigbluebutton-tests/playwright/parameters/userdataParameters.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant