Repository navigation
feat(tests): Add dataTest attributes to audio, video, and presentation components for enabling sample plugin tests - #23388
Conversation
…n components for enabling sample plugin tests
|
""" WalkthroughThe changes update the automated test workflows by removing the trailing Sequence Diagram(s)sequenceDiagram
participant Plugin as Plugin
participant UIComponent as UI Component (Audio/Toolbar/Video/Actions)
participant TestFramework as Test Framework
Plugin->>UIComponent: Provide config object with dataTest property
UIComponent->>UIComponent: Render UI element with dataTest attribute
TestFramework->>UIComponent: Query UI by dataTest attribute
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (5)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
This pull request has conflicts ☹ |
There was a problem hiding this comment.
Actionable comments posted: 0
🔭 Outside diff range comments (1)
bigbluebutton-html5/imports/ui/components/video-provider/video-button/component.tsx (1)
173-180: 🛠️ Refactor suggestionMissing lint / ts-expect pragma for new field
dataTestwas added but the surrounding// @ts-expect-errorpragmas were not updated.
If the SDK types already includedataTest, the existing pragmas forlabel,onClick,iconcan be removed entirely; if not, add one fordataTesttoo to keep the build green.- // @ts-expect-error -> Plugin-related. - label: plugin.label, + // @ts-expect-error -> Plugin-related. + label: plugin.label, + // @ts-expect-error -> Plugin-related. + dataTest: plugin.dataTest,Cleaning up these pragmas will surface real type issues in the future.
🧹 Nitpick comments (1)
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/LiveSelection.tsx (1)
309-313: Icon side inconsistent with other dropdownsHere you map the plugin-provided
iconto the right slot:iconRight: audioSettingsDropdownOption.icon,Whereas in the video dropdown (
video-button/component.tsx) the same field is passed asicon, which renders on the left.
Unless the design intentionally differs between audio and video menus, consider unifying:- iconRight: audioSettingsDropdownOption.icon, + icon: audioSettingsDropdownOption.icon,so plugin authors don’t have to special-case each area.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
bigbluebutton-html5/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (5)
.github/workflows/automated-tests.yml(1 hunks)bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/LiveSelection.tsx(1 hunks)bigbluebutton-html5/imports/ui/components/presentation/presentation-toolbar/component.jsx(1 hunks)bigbluebutton-html5/imports/ui/components/video-provider/video-button/component.tsx(1 hunks)bigbluebutton-html5/package.json(1 hunks)
🔇 Additional comments (4)
bigbluebutton-html5/package.json (1)
60-60: Lock-file drift / reproducibility check
bigbluebutton-html-plugin-sdkis now referenced through a GitHub tarball.
Please make sure you also:
- Regenerate both
package-lock.jsonand any workspace lock files – otherwise CI will fetch the old0.0.82version and the build will silently diverge.- Verify that the commit hash
4c1b8a9acd5d…is signed / trusted and won’t be garbage-collected (a forced-push would break every downstreamnpm ci).If you want immutable & checksum-validated installs, consider:
-"bigbluebutton-html-plugin-sdk": "https://codeload.github.com/bigbluebutton/bigbluebutton-html-plugin-sdk/tar.gz/4c1b8a9acd5db0a9762e0f6ebcf46a11314f67be", +"bigbluebutton-html-plugin-sdk": "github:bigbluebutton/bigbluebutton-html-plugin-sdk#4c1b8a9acd5db0a9762e0f6ebcf46a11314f67be",The
github:spec keeps npm-level integrity hashes in the lock file and survives GitHub changing its tarball layout..github/workflows/automated-tests.yml (1)
192-193: CI scope expanded – looks goodAdding the four extra sample plugins (
audio-settings,camera-settings,custom-subscription,data-channel) toSAMPLES_WITH_TESTSis straightforward and should increase coverage without affecting other jobs.
No further action required.bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/LiveSelection.tsx (1)
311-311: Type completeness
dataTestpropagation is a welcome addition. Double-check thatAudioSettingsDropdownOptionin the SDK has the new field; otherwise TypeScript will complain unless you extend the local menu item type.bigbluebutton-html5/imports/ui/components/presentation/presentation-toolbar/component.jsx (1)
254-255: Good addition – enables e2e selectorsPassing
dataTestthrough to the genericButtonkeeps plugin toolbar buttons test-friendly and aligns with the rest of the codebase.
fd36c86 to
b2c9681
Compare
cc72d7d to
e77bc77
Compare
- validate server variables before running tests - .env.template and README updated
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
bigbluebutton-tests/playwright/README.md (1)
17-17: Minor style improvement: Reduce repetitive language.The sentence uses "you need" twice in close proximity. Consider rephrasing for better readability.
-To run these tests with an existing BigBlueButton server, you need to find the server's URL and secret (can be done with `bbb-conf --secret` command). You need to put them into the `.env` file inside `bigbluebutton-tests/playwright` folder (variables `BBB_URL` and `BBB_SECRET`). +To run these tests with an existing BigBlueButton server, you need to find the server's URL and secret (can be done with `bbb-conf --secret` command). Then put them into the `.env` file inside `bigbluebutton-tests/playwright` folder (variables `BBB_URL` and `BBB_SECRET`).
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (9)
.github/workflows/automated-tests.yml(4 hunks)bigbluebutton-tests/playwright/.env.template(1 hunks)bigbluebutton-tests/playwright/README.md(1 hunks)bigbluebutton-tests/playwright/connectionFailure/util.js(1 hunks)bigbluebutton-tests/playwright/core/helpers.js(3 hunks)bigbluebutton-tests/playwright/core/parameters.js(1 hunks)bigbluebutton-tests/playwright/fixtures.js(2 hunks)bigbluebutton-tests/playwright/package.json(1 hunks)bigbluebutton-tests/playwright/reconnection/util.js(1 hunks)
✅ Files skipped from review due to trivial changes (4)
- bigbluebutton-tests/playwright/.env.template
- bigbluebutton-tests/playwright/connectionFailure/util.js
- bigbluebutton-tests/playwright/reconnection/util.js
- bigbluebutton-tests/playwright/core/helpers.js
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/automated-tests.yml
🧰 Additional context used
🧠 Learnings (2)
bigbluebutton-tests/playwright/package.json (1)
Learnt from: prlanzarin
PR: bigbluebutton/bigbluebutton#21891
File: bbb-webrtc-sfu.placeholder.sh:1-1
Timestamp: 2024-12-12T17:57:29.161Z
Learning: In the `bbb-webrtc-sfu.placeholder.sh` script, adding a shebang and error handling is not necessary.
bigbluebutton-tests/playwright/README.md (2)
Learnt from: prlanzarin
PR: bigbluebutton/bigbluebutton#21891
File: bbb-webrtc-sfu.placeholder.sh:1-1
Timestamp: 2024-12-12T17:57:29.161Z
Learning: In the `bbb-webrtc-sfu.placeholder.sh` script, adding a shebang and error handling is not necessary.
Learnt from: kepstin
PR: bigbluebutton/bigbluebutton#22200
File: docs/src/components/APITableComponent/index.tsx:79-80
Timestamp: 2025-02-05T20:23:17.109Z
Learning: In the BigBlueButton documentation site components, React key properties are not required for mapped elements as the pages are statically generated and don't require runtime reconciliation.
🪛 Biome (1.9.4)
bigbluebutton-tests/playwright/core/parameters.js
[error] 3-3: A global variable should not be reassigned.
Assigning to a global variable can override essential functionality.
(lint/suspicious/noGlobalAssign)
🪛 LanguageTool
bigbluebutton-tests/playwright/README.md
[style] ~17-~17: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...h an existing BigBlueButton server, you need to find the server's URL and secret (can b...
(REP_NEED_TO_VB)
[style] ~17-~17: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ... with bbb-conf --secret command). You need to put them into the .env file inside `b...
(REP_NEED_TO_VB)
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: build-package (bbb-playback-record)
- GitHub Check: build-package (bbb-learning-dashboard)
- GitHub Check: build-package (bbb-graphql-server)
- GitHub Check: build-package (others)
- GitHub Check: build-package (bbb-freeswitch)
- GitHub Check: build-package (bbb-fsesl-akka)
- GitHub Check: build-package (bbb-etherpad)
- GitHub Check: build-package (bbb-apps-akka)
- GitHub Check: build-package (bbb-web)
- GitHub Check: build-package (bbb-html5)
🔇 Additional comments (6)
bigbluebutton-tests/playwright/core/parameters.js (2)
1-1: Good practice: Centralizing environment variable access.Extracting the environment variable to a local constant improves code organization and makes it easier to refactor URL handling in the future.
10-10: Well-implemented hostname extraction with proper error handling.The hostname extraction correctly handles the case where
bbbUrlmight be undefined, preventing potential runtime errors.bigbluebutton-tests/playwright/fixtures.js (2)
19-25: Excellent addition of environment variable validation.The
beforeAllhook provides early validation of required environment variables, preventing test failures from propagating. The regex pattern correctly enforces the new BBB_URL format standard.
20-20: Regex pattern verification passedAll valid BigBlueButton URLs match and all invalid cases are correctly rejected by the pattern. No changes required.
bigbluebutton-tests/playwright/README.md (1)
17-17: Good update: Removing outdated URL format documentation.The removal of the specific URL format note aligns with the standardization effort and prevents confusion about the expected format.
bigbluebutton-tests/playwright/package.json (1)
4-4: Correct removal of/apisuffix handling.The modification to the
test:sshscript correctly removes the sed command that was appending "api" to the BBB_URL, aligning with the new URL format standard enforced by the validation logic.
|
This pull request has conflicts ☹ |
|
Automated tests Summary✅ All the CI tests have passed! |



What does this PR do?
SAMPLES_WITH_TESTSfor CI testing;Additionally:
BBB_URLvariable pattern - see refactor(test): ChangeBBB_URLenv variable pattern #23422 for more details