Skip to content

test(e2e): run the Zoom specs in WebKit too - #189

Merged
ShuhaoZQGG merged 1 commit into
devfrom
test/zoom-e2e-webkit
Dec 2, 2026
Merged

ShuhaoZQGG merged 1 commit into
devfrom
test/zoom-e2e-webkit

Conversation

@ShuhaoZQGG

@ShuhaoZQGG ShuhaoZQGG commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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, zoom and tabletopics all on devices['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

  • New Playwright project zoom-webkit (playwright.config.js): the same e2e/zoom.*.spec.js files with devices['Desktop Safari'] (Playwright 1.58.2's WebKit 26.0), against the same Zoom dev server on localhost:3000. web and tabletopics stay on Chromium.
  • CI (ci.yml) installs WebKit beside Chromium: npx playwright install --with-deps chromium webkit.
  • Factory build (factory-build.yml) gets the same install line, because the cloud verify step runs npm run test:e2e and would otherwise fail to launch WebKit. ⚠️ This file must stay byte-identical to master's copy, or the Claude action skips every factory build. Its twin on master is Factory: install WebKit in the build station (master) #190, the same one-line change (blob 341daa0 on both branches). Merge the two together.
  • Two tests made WebKit-aware. No assertion changed.
    • 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.
  • Docs: CLAUDE.md (the test:e2e command line and the "Web e2e" row) and the layer table in e2e/zoom-client/README.md now 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).

  1. 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-write are Chromium permission names. A probe page on localhost shows WebKit lets a click call navigator.clipboard.writeText with 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 writeText in 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.
  2. zoom.card-switch-perf.spec.js "Custom set: overlay decode pipeline per card": page.evaluate: null while seeding the custom set.
    Playwright limitation, not an app difference. Playwright's WebKit contexts are ephemeral, and ephemeral WebKit refuses IDBObjectStore.put(Blob) with UnknownError: 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's tx.onerror then rejects with tx.error, which is still null. 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 @performance tests 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:

Tests Run 1 Run 2 Mean
Before: --project=web --project=zoom --project=tabletopics 163 63.2 s 58.1 s 60.7 s
After: all projects (adds zoom-webkit) 265 102.7 s 94.1 s 98.4 s

So about +38 s per local run (+62 %). A one-time npx playwright install webkit adds a 7.5 s download.

CI (one job, workers: 1): compared with CI on dev at d18bc18, this branch's base, same tests minus WebKit (run 46919667549); this PR's run: 46921627567.

Step dev at d18bc18 This PR Added
Install Playwright browsers 21 s 55 s +34 s
Web e2e (163 → 265 tests; no retries) 223 s 387 s +164 s
The two steps WebKit touches 244 s 442 s +198 s (about 3.3 min)
Whole job 416 s 561 s +145 s

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-webkit in a second, parallel job (same wall clock, twice the setup), or cache ~/.cache/ms-playwright (the download only; --with-deps still 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 pass
  • npm 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 commit d6d6cf6. Per project: web and tabletopics unchanged, zoom 102/102, zoom-webkit 101 + 1 skipped. CI (WebKit's Linux build, one worker): green, run.
  • npm run test:specs: 18 zoom-client specs valid
  • Oracle: none (no factory issue).

Evidence (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 covers a changed file. The two edited Playwright files are listed only under specs' automated:.

Not verified

Look here first

  1. playwright.config.js: the zoom-webkit project.
  2. e2e/zoom.new-look.spec.js and e2e/zoom.card-switch-perf.spec.js: the two WebKit-aware setups; no assertion changed.
  3. .github/workflows/factory-build.yml: the one-line install change. Its master twin is Factory: install WebKit in the build station (master) #190.

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).
@ShuhaoZQGG
ShuhaoZQGG marked this pull request as ready for review December 2, 2026 17:32
@ShuhaoZQGG
ShuhaoZQGG merged commit cf35cdf into dev Dec 2, 2026
1 check passed
@ShuhaoZQGG ShuhaoZQGG mentioned this pull request Dec 3, 2026
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.

1 participant