Repository navigation
CI: avoid using some external/3rd party assets - #24882
Conversation
|
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 ignored due to path filters (2)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughAdded exported constants Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
| allowModsToEjectCameras: 'allowModsToEjectCameras=true', | ||
| notifyRecordingIsOn: 'notifyRecordingIsOn=true¬ifyRecordingIsOn=true', | ||
| preUploadedPresentation: 'preUploadedPresentation=https://dagrs.berkeley.edu/sites/default/files/2020-01/sample.pdf', | ||
| preUploadedPresentation: `preUploadedPresentation=${serverOrigin}/default.pdf`, |
There was a problem hiding this comment.
There was something peculiar about that specific presentation. Can we consider downloading it to ...
maybe a github repo and linking to there?
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@bigbluebutton-tests/playwright/parameters/constants.ts`:
- Line 7: The module crashes because serverOrigin is computed with new
URL(parameters.server) without guarding against malformed BBB_URL; change the
initialization of serverOrigin (in
bigbluebutton-tests/playwright/parameters/constants.ts) to validate/parse
parameters.server safely—either call the existing parseHostname()/parsing helper
from parameters.ts or wrap URL parsing in a try/catch and fallback to '' on
error; ensure the symbol serverOrigin is set to '' for invalid or absent
parameters.server and preserve current behavior for valid URLs.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 83e8a614-0a98-4929-80c8-d296eeb59e08
⛔ Files ignored due to path filters (3)
bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/mod-page-overridden-default-presentation-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/viewer-page-overridden-default-presentation-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/webcam-background-passing-url-Chromium-linux.pngis excluded by!**/*.png
📒 Files selected for processing (3)
bigbluebutton-tests/playwright/parameters/constants.tsbigbluebutton-tests/playwright/parameters/createParameters.tsbigbluebutton-tests/playwright/parameters/parameters.spec.ts
|
✅ Automated tests have passed! |
There was a problem hiding this comment.
Pull request overview
This PR updates Playwright CI tests to avoid relying on externally hosted assets (CSS/image/PDF URLs), aiming to reduce CI flakiness caused by third-party/unreliable asset hosting.
Changes:
- Stub the “Custom Styles: URL” stylesheet fetch via
context.route()and a locally provided CSS body. - Replace some externally hosted URLs (logo/webcam background) with URLs pointing to the test server’s own origin.
- Update “override default presentation” test flow and refresh related screenshot snapshots.
Reviewed changes
Copilot reviewed 3 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/webcam-background-passing-url-Chromium-linux.png | Updated snapshot after switching webcam background asset source. |
| bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/viewer-page-overridden-default-presentation-Chromium-linux.png | Updated snapshot after presentation override flow change. |
| bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/mod-page-overridden-default-presentation-Chromium-linux.png | Updated snapshot after presentation override flow change. |
| bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/mod-page-overridden-default-presentation-Chromium-linux.png | Updated snapshot artifact for mod view. |
| bigbluebutton-tests/playwright/parameters/parameters.spec.ts | Removes the flaky tag and stubs the custom-style URL response via context.route(). |
| bigbluebutton-tests/playwright/parameters/createParameters.ts | Adds UI steps/assertion around Manage Presentations before taking screenshots. |
| bigbluebutton-tests/playwright/parameters/constants.ts | Introduces CUSTOM_STYLE_*, computes serverOrigin, and replaces some asset URLs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7b81d26
into
bigbluebutton:v3.0.x-develop



What does this PR do?
Adjusts the following tests to not use external assets:
Closes Issue(s)
Closes #24849