Repository navigation
[4.0]test: Fix 31 failures (etherpad, whiteboard) - #25723
Conversation
Since 4.0 the bigbluebutton meta package no longer depends on bbb-pads / bbb-etherpad: BlockNote (bbb-shared-notes-server) is the default shared notes editor and Etherpad is an optional add-on. On a stock 4.0 server a meeting created with sharedNotesEditor=etherpad has no working notes backend, the Shared Notes button never renders, and all eight tests in this suite fail on the first selector. Probe the Etherpad nginx route (/pad/api, shipped by bbb-etherpad) once in beforeAll and skip the suite with an explicit reason when it is not there, so the suite keeps running on servers that install the add-on and stops producing false failures everywhere else.
whiteboardResize.ts writes these four *-initial screenshots at runtime (Screenshot A) and compares the post-resize state against them within the same run, so the committed copies are never read - every test run overwrites them and leaves the working tree permanently dirty. Untrack them and ignore the whole family instead.
All full-page toHaveScreenshot baselines under whiteboard, options and presentation predate two intentional UI changes on v4.0.x-develop: - ebb7bc9 (feat(sidebar-navigation): align sizing and notification badge colors with design spec) tightened the navigation sidebar gaps, shifting every sidebar icon vertically, and - PR bigbluebutton#25565 reworked presentation-toolbar styles, so 23 @ci tests failed their visual comparison on a clean run against a 4.0.0-rc.1 server even though the rendered UI is correct - the diffs show only the sidebar icon shift plus meeting-name noise, with shapes and slide content identical. Regenerated on anton-1 with --update-snapshots; the refreshed set passed a clean follow-up run.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: ⛔ Files ignored due to path filters (46)
📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. WalkthroughThe Playwright configuration now ignores four groups of generated whiteboard snapshot files. The Etherpad shared-notes suite now probes Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This PR updates test execution and visual baselines without changing production behavior. No actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.) ✨ 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 |
|
About the error hit |
✅ Automated tests have passed! |
824bab2
into
bigbluebutton:v4.0.x-develop
Both packages were dropped from the 4.0 metapackage (bigbluebutton#25616) and remain pinned to nodejs (<< 23), which is unsatisfiable now that the server runs Node 24 - the explicit 'apt-get install bbb-etherpad bbb-pads' after bbb-install broke the whole install job. The sharednotes Etherpad suite already probes for Etherpad and skips itself when absent (bigbluebutton#25723), so no test depends on these packages being present.
…5726) The fix for issue 25332 (72e5511) committed a viewer's in-progress edit inside the [curPageId] page swap, so tldraw left select.editing_shape before the store mutation removed the shape being edited. The decode-gated swap (e66e9eb) later deferred that whole swap - guard included - behind an img.decode() race, re-opening the window through a different door: the shapes-sync removal effects ([removedShapes] and the shapes-diff pruning) are unguarded and still run immediately, so when the viewer's shape subscription re-keys to the new page before the decode resolves, the edited shape is removed while the editor still holds a dangling editingShapeId. The viewer's next pointer-down then trips tldraw's "Expected an editing shape!" assertion and crashes the client - exactly the crash the original fix addressed, now timing-dependent on subscription-update vs SVG-decode. Caught by the 'No crash on slide change while a viewer is editing' regression test on CI (PR #25723), where a loaded runner lost the race. Commit the edit synchronously at the top of the [curPageId] effect, before the decode gate starts, restoring the original ordering guarantee regardless of how the race resolves. The check inside applyPageSwap stays as a second line of defense for an edit that begins during the decode wait.
Both packages were dropped from the 4.0 metapackage (bigbluebutton#25616) and remain pinned to nodejs (<< 23), which is unsatisfiable now that the server runs Node 24 - the explicit 'apt-get install bbb-etherpad bbb-pads' after bbb-install broke the whole install job. The sharednotes Etherpad suite already probes for Etherpad and skips itself when absent (bigbluebutton#25723), so no test depends on these packages being present.
What does this PR do?
Fixes the 31 Playwright
@cifailures that show up when running the suite against a stock BigBlueButton 4.0.0-rc.1 server (tested onanton-1.do.blindside-dev.com). None of them were product bugs — the client renders correctly; the suite was out of date on two fronts.1. Skip the Etherpad shared-notes suite when the server has no Etherpad (8 tests)
Since 4.0 the
bigbluebuttonmeta package no longer depends onbbb-pads/bbb-etherpad: BlockNote (bbb-shared-notes-server) is the default shared-notes editor and Etherpad is an optional add-on. On a stock 4.0 server a meeting created withsharedNotesEditor=etherpadhas no working notes backend, the Shared Notes button never renders, and all eight tests insharednotes/etherpad/fail on their first selector.The suite now probes the Etherpad nginx route (
/pad/api, shipped bybbb-etherpad) once inbeforeAlland skips with an explicit reason when it is absent:On servers that do install the add-on, the probe passes and the suite runs unchanged.
2. Regenerate stale visual baselines (23 tests)
All full-page
toHaveScreenshotbaselines underwhiteboard/,options/andpresentation/were generated on July 22–24 and predate two intentional UI changes onv4.0.x-develop:feat(sidebar-navigation): align sizing and notification badge colors with design spec, July 29) tightened the navigation sidebar gaps, shifting every sidebar icon vertically, andEvery diff image shows only the sidebar icon shift plus meeting-name/timestamp noise; drawn shapes and slide content are pixel-identical (±1px anti-aliasing). Baselines regenerated with
--update-snapshotson 4.0.0-rc.1.3. Stop tracking the same-run resize baselines (4 files)
whiteboardResize.tswrites its four*-initialscreenshots at runtime (Screenshot A) and compares the post-resize state against them within the same run, so the committed copies are never read — every test run overwrites them and leaves the working tree permanently dirty. They are now untracked and gitignored.Verification
On
anton-1(4.0.0-rc.1,v4.0.x-develop@ c96ebe9):--last-failedretry of the 31 failuresThe only failures in the final run are pre-existing tests tagged
@flaky,@flaky-3.1or@setting-required, which the standardnpm run test-chromiumgate already excludes via--grep-invertand which were failing before this change as well.Motivation
Keep the Playwright suite trustworthy against a default 4.0 install: a fresh run currently reports 31 failures that have nothing to do with the product, which buries any real regression.