Skip to content

chore(client): stub "crypto" for the browser build#41545

Merged
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:client-crypto-stub
Jun 30, 2026
Merged

chore(client): stub "crypto" for the browser build#41545
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:client-crypto-stub

Conversation

@dgozman

@dgozman dgozman commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Route Waiter through the shared createGuid() and stub the Node crypto module for the @playwright/client browser bundle (minimal randomBytes, backed by WebCrypto).
  • Removes the bespoke createGuidWithWebCrypto() helper that only existed to avoid stubbing crypto.

Route Waiter through the shared createGuid() and satisfy its Node
"crypto" import in the @playwright/client browser bundle with a minimal
stub (randomBytes only, backed by WebCrypto). Removes the bespoke
createGuidWithWebCrypto() helper that existed solely to dodge stubbing.
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5 failed
❌ [chromium] › mcp/annotate.spec.ts:110 › should abort annotation when last screenshot is removed @mcp-windows-latest-chromium
❌ [chromium] › mcp/http.spec.ts:349 › client should receive list roots request @mcp-ubuntu-latest-chromium
❌ [firefox] › mcp/cli-killall.spec.ts:42 › kill-all kills filtered dashboard pid @mcp-ubuntu-latest-firefox
❌ [firefox] › mcp/cli-killall.spec.ts:42 › kill-all kills filtered dashboard pid @mcp-macos-latest-firefox
❌ [firefox] › mcp/http.spec.ts:349 › client should receive list roots request @mcp-macos-latest-firefox

7456 passed, 1132 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

6 flaky ⚠️ [chromium-library] › library/video.spec.ts:275 › screencast › should capture navigation `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:299 › should report intercepted service worker requests in HAR `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/popup.spec.ts:260 › should not throw when click closes popup `@chromium-ubuntu-22.04-node24`
⚠️ [firefox-library] › library/heap.spec.ts:223 › should not leak workers `@firefox-ubuntu-22.04-node20`
⚠️ [playwright-test] › ui-mode-test-output.spec.ts:118 › should collapse repeated console messages for test `@ubuntu-latest-node22`
⚠️ [playwright-test] › ui-mode-trace.spec.ts:827 › should update state on subsequent run `@windows-latest-node22`

49167 passed, 1163 skipped


Merge workflow run.

@dgozman dgozman merged commit e843906 into microsoft:main Jun 30, 2026
44 of 48 checks passed
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