Skip to content

docs(readme): align documented PLAYWRIGHT_MCP_* env vars with runtime - #1862

Merged
Devin Rousso (dcrousso) merged 1 commit into
microsoft:mainfrom
alok-108:fix-1861
Nov 17, 2026
Merged

Devin Rousso (dcrousso) merged 1 commit into
microsoft:mainfrom
alok-108:fix-1861

Conversation

@alok-108

Copy link
Copy Markdown
Contributor

Fixes #1861

Summary

  • Map --no-sandbox to PLAYWRIGHT_MCP_SANDBOX=false (and --remote-header to PLAYWRIGHT_MCP_REMOTE_HEADERS) in update-readme.js, matching how configFromEnv in playwright-core reads those options.
  • Verify derived PLAYWRIGHT_MCP_* environment variable names against playwright-core/lib/coreBundle so CLI options without env var support (--endpoint, --save-session, --shared-browser-context, --snapshot-boxes, --snapshot-mode) do not emit nonexistent *env* entries in README.md or PRINT_ENV output.
  • Regenerate README.md with npm run lint.
  • Add a regression test in tests/cli.spec.ts verifying every documented *env* variable in README.md exists in playwright-core/lib/coreBundle and that PLAYWRIGHT_MCP_SANDBOX=false resolves chromiumSandbox: false.

Verification

  • node --check update-readme.js
  • npm run lint + git diff --exit-code
  • npx playwright test --project=chrome --reporter=list (9 passed (4.2s))

@karimashrafkf-debug

This comment was marked as spam.

@dcrousso
Devin Rousso (dcrousso) merged commit 6618cdf into microsoft:main Nov 17, 2026
6 checks passed
@alok-108
Alok Pandey (alok-108) deleted the fix-1861 branch November 17, 2026 17:05
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.

docs: README documents wrong/unsupported PLAYWRIGHT_MCP_* env vars (including PLAYWRIGHT_MCP_NO_SANDBOX)

3 participants