Skip to content

[4.0]test: Fix 31 failures (etherpad, whiteboard) - #25723

Merged
ramonlsouza merged 3 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:playwright40-sep01
Sep 1, 2026
Merged

ramonlsouza merged 3 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:playwright40-sep01

Conversation

@antobinary

Copy link
Copy Markdown
Member

What does this PR do?

Fixes the 31 Playwright @ci failures that show up when running the suite against a stock BigBlueButton 4.0.0-rc.1 server (tested on anton-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 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 sharednotes/etherpad/ fail on their first selector.

The suite now probes the Etherpad nginx route (/pad/api, shipped by bbb-etherpad) once in beforeAll and skips with an explicit reason when it is absent:

-   5 [Chromium] › sharednotes/etherpad/sharednotes.spec.ts:37:7 › Shared Notes - Etherpad › Open shared notes @ci

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 toHaveScreenshot baselines under whiteboard/, options/ and presentation/ were generated on July 22–24 and predate two intentional UI changes on v4.0.x-develop:

Every 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-snapshots on 4.0.0-rc.1.

3. Stop tracking the same-run resize baselines (4 files)

whiteboardResize.ts writes its 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. They are now untracked and gitignored.

Verification

On anton-1 (4.0.0-rc.1, v4.0.x-develop @ c96ebe9):

Run Result
Baseline: --last-failed retry of the 31 failures FAIL — 30 of 31 reproduce deterministically
After fixes: clean run of the four affected spec files PASS — 56 passed, 8 skipped (Etherpad), 0 unexpected failures

The only failures in the final run are pre-existing tests tagged @flaky, @flaky-3.1 or @setting-required, which the standard npm run test-chromium gate already excludes via --grep-invert and 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.

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.
@antobinary antobinary added this to the Release 4.0 milestone Sep 1, 2026
@coderabbitai

coderabbitai Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 4c92d679-e5d9-42f2-b4ce-170052d933d3

📥 Commits

Reviewing files that changed from the base of the PR and between c96ebe9 and e0f0aff.

⛔ Files ignored due to path filters (46)
  • bigbluebutton-tests/playwright/options/options.spec.ts-snapshots/moderator-page-dark-mode-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/options/options.spec.ts-snapshots/moderator-page-font-size-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/presentation/presentation.spec.ts-snapshots/mod-hide-toolbars-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/presentation/presentation.spec.ts-snapshots/user-toolbars-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/mod-whiteboard-resize-initial-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/mod-whiteboard-resize-zoomed-initial-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-arrow-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-change-color-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-dash-drawing-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-delete-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-duplicate-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-ellipse-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-eraser-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-fill-drawing-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-line-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-pencil-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-realtime-text-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-rectangle-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-redo-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-rotate-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-size-drawing-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-sticky-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-text-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-triangle-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/moderator-undo-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/user-whiteboard-resize-initial-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/user-whiteboard-resize-zoomed-initial-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-arrow-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-change-color-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-dash-drawing-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-delete-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-duplicate-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-ellipse-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-eraser-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-fill-drawing-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-line-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-pencil-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-realtime-text-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-rectangle-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-redo-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-rotate-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-size-drawing-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-sticky-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-text-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-triangle-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/viewer-undo-Chromium-linux.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • bigbluebutton-tests/playwright/.gitignore
  • bigbluebutton-tests/playwright/sharednotes/etherpad/sharednotes.spec.ts

Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review.


Walkthrough

The Playwright configuration now ignores four groups of generated whiteboard snapshot files. The Etherpad shared-notes suite now probes /pad/api before execution. If the route is unavailable or returns a non-OK response, the suite skips its tests with a stored reason.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to e0f0a

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)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies a test change for BigBlueButton 4.0 and names the Etherpad and whiteboard failures addressed by the pull request.
Description check ✅ Passed The description directly explains the Etherpad test skip, visual baseline updates, gitignore changes, and verification results.
Docstring Coverage ✅ Passed 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…
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 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)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

@antobinary

antobinary commented Sep 1, 2026 •

Copy link
Copy Markdown
Member Author

About the error hit

Warning:   Flaky (attempt #1) ────────────────────────────────────────────────────────────
17
  [Chromium] › whiteboard/whiteboard.spec.ts › Whiteboard tools › No crash on slide change while a viewer is editing
18
  Error: viewer must not throw "Expected an editing shape!" on slide change while editing (got: Expected an editing shape!)
19
  
20
  expect(received).toHaveLength(expected)
21
  
22
  Expected length: 0
23
  Received length: 1
24
  Received array:  ["Expected an editing shape!"]
25
      at SlideChangeWhileEditing.crashOnSlideChangeWhileEditing (/home/runner/work/bigbluebutton/bigbluebutton/bigbluebutton-tests/playwright/whiteboard/slideChangeWhileEditing.ts:79:7)
26
      at /home/runner/work/bigbluebutton/bigbluebutton/bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts:173:5
27
  
28
Error:   [Chromium] › whiteboard/whiteboard.spec.ts › Whiteboard tools › No crash on slide change while a viewer is editing
29
  Error: viewer must not throw "Expected an editing shape!" on slide change while editing (got: Expected an editing shape!)
30
  
31
  expect(received).toHaveLength(expected)
32
  
33
  Expected length: 0
34
  Received length: 1
35
  Received array:  ["Expected an editing shape!"]
36
      at SlideChangeWhileEditing.crashOnSlideChangeWhileEditing (/home/runner/work/bigbluebutton/bigbluebutton/bigbluebutton-tests/playwright/whiteboard/slideChangeWhileEditing.ts:79:7)
37
      at /home/runner/work/bigbluebutton/bigbluebutton/bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts:173:5
38
Error: Process completed with exit code 1.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

@ramonlsouza
ramonlsouza merged commit 824bab2 into bigbluebutton:v4.0.x-develop Sep 1, 2026
62 of 63 checks passed
antobinary added a commit to antobinary/bigbluebutton that referenced this pull request Sep 1, 2026
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.
antobinary added a commit that referenced this pull request Sep 2, 2026
…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.
antobinary added a commit to antobinary/bigbluebutton that referenced this pull request Oct 3, 2026
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.
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.

2 participants