Skip to content

docs: explain that offline emulation does not affect WebRTC - #42624

Merged
Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
pavelfeldman:fix-42623
Sep 8, 2026
Merged

Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
pavelfeldman:fix-42623

Conversation

@pavelfeldman

Copy link
Copy Markdown
Member

Summary

  • Document that setOffline / the offline option only affect the browser's regular network stack and do not interrupt WebRTC traffic.
  • Suggest interrupting the connection outside the browser for WebRTC failure testing.

Fixes #42623

@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit 06c83c0 into microsoft:main Sep 8, 2026
42 of 43 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 failed
❌ [playwright-test] › reporter-html.spec.ts:3645 › created › speedboard › next/prev buttons should follow speed @macos-latest-node22

7 flaky ⚠️ [chromium-library] › library/browsercontext-page-event.spec.ts:160 › should work with Shift-clicking `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:736 › screencast › should work with video+trace `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:301 › should report intercepted service worker requests in HAR `@realtime-time-library-chromium-linux`
⚠️ [chromium-library] › library/video.spec.ts:664 › screencast › should capture full viewport `@chromium-ubuntu-22.04-node24`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:257 › third party 'Partitioned;' cookies `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:470 › top level 'Partitioned;' cookie and same origin iframe `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-page] › page/page-event-request.spec.ts:181 › should return response body when Cross-Origin-Opener-Policy is set `@firefox-ubuntu-22.04-node20`

51386 passed, 1247 skipped


Merge workflow run.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

8335 passed, 1376 skipped


Merge workflow run.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Hi, I'm the Playwright bot and I took a first look at the failing CI on this PR.

🟡 The one failure isn't attributable to this PR, but I can't call it a proven flake either

This is a docs-only change (markdown + the auto-generated types.d.ts derived from it). The single real failure — reporter-html.spec.ts:3645 › created › speedboard › next/prev buttons should follow speed on macos-latest-node22 — is an HTML-reporter UI test that none of the diff can reach. So the PR is almost certainly clear. I'm leaving this yellow only because the test is otherwise near-100% green and this run is its sole red in the results DB, so I can't point at an independent failure to certify it as a flake. A rerun should go green.

Details

Overall: docs-only PR, one real failure plus 7 unrelated flakies. Nothing here points at the change.

Uncertain (but not caused by this PR)

  • [playwright-test] › reporter-html.spec.ts:3645 › created › speedboard › next/prev buttons should follow speed @macos-latest-node22 — the diff only touches docs/src/emulation.md, docs/src/api/class-browsercontext.md, and the generated types.d.ts for setOffline. It changes no reporter code, no test helper, and no product path this test exercises, so there's no mechanism for it to break a speedboard button test. Across the results DB this test is green in 1273 of 1274 macos-latest-node22 runs and passed 100% on every other bot (ubuntu node20/22/24/26, windows, the frozen/realtime chromium runners) — the only red is this PR's own run. That's consistent with a rare macOS blip, but with no independent failure to cite I can't formally call it a pre-existing flake per our bar. Recommend re-running the tests 1 job; I'd expect green.

Pre-existing flake / infra (the 7 flakies, rescued on retry)

  • These all passed on retry and are unrelated to a docs change: browsercontext-page-event.spec.ts:160, video.spec.ts:736 / :664, chromium.spec.ts:301, browsercontext-cookies-third-party.spec.ts:257 / :470, page-event-request.spec.ts:181. Standard cross-browser flake noise, nothing the diff reaches.

Triaged by the Playwright bot - agent run

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.

[Bug]: browserContext.setOffline(true) does not affect WebRTC media (verified on both host and TURN relay paths) — docs scope note proposed

2 participants