Repository navigation
test(e2e): run the Zoom specs in WebKit too - #189
Merged
Merged
Conversation
Zoom's macOS client shows apps in WKWebView, so a panel change that renders or behaves differently in WebKit passed Playwright (Chromium only) and surfaced only in the real client. The zoom-webkit project runs the same e2e/zoom.*.spec.js files with Desktop Safari against the same dev server. CI and the cloud factory build install WebKit beside Chromium. Two tests needed a WebKit-aware setup, no assertion changed: - the report test grants Chromium's clipboard permissions only in Chromium; WebKit has no such permission and lets the click write, as Safari does. - the custom-set perf test is skipped in WebKit: Playwright's WebKit contexts are ephemeral and cannot put a Blob in IndexedDB (Zoom's persistent WKWebView can).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No issue. Follows the Zoom-run rule in #188: a change that reaches no Zoom-only surface is proven by unit tests and Playwright, so Playwright should run in the engine Zoom uses on a Mac.
Why
Playwright ran only Chromium (
web,zoomandtabletopicsall ondevices['Desktop Chrome']; CI installed Chromium only). Zoom's developer docs say the desktop client renders Zoom Apps in the OS's embedded browser: on Windows that is WebView2 or CEF (both Chromium), and on macOS "For Mac, it's WKWebView, tied to the version that your Safari browser uses." Source: Zoom Apps architecture → Embedded browser versions. So a panel change that renders or behaves differently in WebKit passed CI and showed up only in the release run on the owner's Mac.What changes
zoom-webkit(playwright.config.js): the samee2e/zoom.*.spec.jsfiles withdevices['Desktop Safari'](Playwright 1.58.2's WebKit 26.0), against the same Zoom dev server onlocalhost:3000.webandtabletopicsstay on Chromium.ci.yml) installs WebKit beside Chromium:npx playwright install --with-deps chromium webkit.factory-build.yml) gets the same install line, because the cloud verify step runsnpm run test:e2eand would otherwise fail to launch WebKit.341daa0on both branches). Merge the two together.zoom.new-look.spec.js, the report test: Chromium's clipboard permissions are granted only in Chromium (details below). The whole test, "Copied" included, now runs in WebKit.zoom.card-switch-perf.spec.js, the "Custom set" test: skipped in WebKit only, with the reason in the skip.CLAUDE.md(thetest:e2ecommand line and the "Web e2e" row) and the layer table ine2e/zoom-client/README.mdnow say the Zoom specs run in Chromium and WebKit.WebKit-only failures and what each was
First WebKit run (Playwright 1.58.2, WebKit 26.0, macOS) on dev at 7c1795e: 87 Zoom tests, 2 failed in WebKit only, 85 passed. Chromium passed all of them. After rebasing onto
d18bc18(dev with the agenda-import tests): 102 Zoom tests, 101 pass in WebKit and 1 is skipped (item 2).zoom.new-look.spec.js"report: empty, then a speech to copy…":browserContext.grantPermissions: Unknown permission: clipboard-write.Playwright limitation, not an app difference.
clipboard-read/clipboard-writeare Chromium permission names. A probe page on localhost shows WebKit lets a click callnavigator.clipboard.writeTextwith no grant, while headless Chromium refuses it without the grant (NotAllowedError: Write permission denied). So the test grants them only in Chromium. In WebKit it runs in full, with the same assertions as before.Note: this doesn't model Zoom. Zoom 7.2.5 on the Mac refuses
writeTextin its WKWebView: Copy report opens the "Copy the report" fallback sheet (NL-14, 2026-11-19 run). That is Zoom's own embedded-browser policy, which Run the real Zoom client only when a change reaches the Zoom-only surface #188 lists as a Zoom-only surface. The real-client spec stays the proof for it.zoom.card-switch-perf.spec.js"Custom set: overlay decode pipeline per card":page.evaluate: nullwhile seeding the custom set.Playwright limitation, not an app difference. Playwright's WebKit contexts are ephemeral, and ephemeral WebKit refuses
IDBObjectStore.put(Blob)withUnknownError: Error preparing Blob/File data to be stored in object store. That is on purpose: WebKit bug 286561 (fixed January 2025) made an ephemeral session return an error for a stored Blob. The test'stx.onerrorthen rejects withtx.error, which is stillnull. In the same probe, a persistent WebKit profile (launchPersistentContext) stores the Blob, and Chromium does too. Zoom's WKWebView on macOS also stores it: club-card-sets CC-01 passed in the real client on 2026-11-24, with uploaded cards showing on the video. The test is skipped in WebKit with that reason. The two built-in-set tests in the same file still run the decode pipeline (fetch → decode → downscale) in WebKit.No real app difference turned up. The panel's layout checks (one-line footer labels, no sideways scroll, the sheet footer's bottom edge), its events (hover sheets, drag on the video preview, Escape), Web Audio (break music) and the performance budgets all hold in WebKit. WebKit 26 reports real LCP and event-timing entries, so the
@performancetests are not passing vacuously. Repeated 3× locally on 7c1795e: 261 runs (87 × 3), 258 passed, 3 skipped (the Custom-set test), none flaky.What this project can't catch: Playwright's WebKit is the engine (the WPE port on Linux CI), not Apple's WKWebView build inside Zoom. Zoom's WKWebView follows the Mac's Safari version, which can be older than WebKit 26.0. And Zoom's own embedded-browser policies (clipboard, file dialog, links,
confirm) stay Zoom-only.Time cost
Local
npm run test:e2e(MacBook M3 Pro, 12 cores, Playwright's default 6 workers,--reporter=list), on this branch, alternating runs:--project=web --project=zoom --project=tabletopicszoom-webkit)So about +38 s per local run (+62 %). A one-time
npx playwright install webkitadds a 7.5 s download.CI (one job,
workers: 1): compared with CI ondevatd18bc18, this branch's base, same tests minus WebKit (run 46919667549); this PR's run: 46921627567.The whole job grew less than the two steps because unit tests happened to run 43 s faster in this run (79 s against 122 s); expect about +3.3 min on a job that took 5–7 min. One sample each: six earlier Chromium-only runs had Web e2e between 182 and 223 s and the browser install between 16 and 21 s (one outlier at 377 s on a slow apt mirror), so read the deltas as ±20 s. Cross-check: locally,
CI=1 npx playwright test --project=zoom-webkit(one worker, as in CI) takes 161 s for its 102 tests.To win the time back later: run
zoom-webkitin a second, parallel job (same wall clock, twice the setup), or cache~/.cache/ms-playwright(the download only;--with-depsstill installs WebKit's system libraries).Security
None. Test configuration, CI and docs only.
Production impact
None for users: no app code changes. CI takes longer (see above). The cloud factory build needs the master twin #190 merged together with this PR (see What changes), or it stops at "Check the station ran".
Testing
npm test: 167 files, 3,414 tests passnpm run test:e2e: 265 tests: 264 passed, 1 skipped (the Custom-set test, WebKit only), three times on the rebased branch, the last on the final commitd6d6cf6. Per project:webandtabletopicsunchanged,zoom102/102,zoom-webkit101 + 1 skipped. CI (WebKit's Linux build, one worker): green, run.npm run test:specs: 18 zoom-client specs validEvidence (real Zoom client)
Not needed. The change reaches no Zoom-only surface: test config, CI and docs only (the rule in #188). No Zoom-client spec
coversa changed file. The two edited Playwright files are listed only under specs'automated:.Not verified
plan:approved, and it needs the master twin Factory: install WebKit in the build station (master) #190 merged too.Look here first
playwright.config.js: thezoom-webkitproject.e2e/zoom.new-look.spec.jsande2e/zoom.card-switch-perf.spec.js: the two WebKit-aware setups; no assertion changed..github/workflows/factory-build.yml: the one-line install change. Its master twin is Factory: install WebKit in the build station (master) #190.