Skip to content

docs(readme): align configuration schema and env docs with runtime - #551

Closed
Alok Pandey (alok-108) wants to merge 1 commit into
microsoft:mainfrom
alok-108:fix-550
Closed

Alok Pandey (alok-108) wants to merge 1 commit into
microsoft:mainfrom
alok-108:fix-550

Conversation

@alok-108

Copy link
Copy Markdown

Fixes #550

Summary

  • Sync README.md's Configuration file schema with playwright-core runtime (resolveCLIConfigForCLI / resolveConfigPaths): remove dead saveVideo and removed outputMode, update codegen ('typescript' | 'python' | 'java' | 'csharp' | 'none'), document object browser.remoteEndpoint, relative-path resolution, extension, tabGroup, sessionColor, background, webmcp, secrets, redactUrlParams, outputMaxSize, timeouts.expect/settle/idle, imageResponses, filePaths, snapshot.boxes, and ignoreRoots.
  • Sync README.md's Configuration via env with playwright-core: remove nonexistent PLAYWRIGHT_MCP_SAVE_TRACE and PLAYWRIGHT_MCP_SAVE_VIDEO, update PLAYWRIGHT_MCP_EXTENSION ("Playwright Extension"), PLAYWRIGHT_MCP_CAPS (devtools), PLAYWRIGHT_MCP_CDP_TIMEOUT (30000ms), and document the active PLAYWRIGHT_MCP_* environment variables read by configFromEnv and runtime.
  • Add a regression test in tests/integration.spec.ts verifying every documented PLAYWRIGHT_MCP_* environment variable in README.md exists in playwright-core/lib/coreBundle, removed schema options (saveVideo, outputMode) are absent, and tools.resolveCLIConfigForCLI resolves them with CLI defaults (headless: true).

Verification

  • git diff --check
  • npx playwright test -g "documented env vars and config schema" --reporter=list: 1 passed (781ms) (confirmed failing before the README.md fix on PLAYWRIGHT_MCP_SAVE_TRACE and PLAYWRIGHT_MCP_SAVE_VIDEO)
  • npx playwright test --workers=1 --reporter=list: 7 passed (3 pre-existing Windows npm view 1500ms timeout flakes in unrelated update-check tests)

@dgozman

Copy link
Copy Markdown
Contributor

I don't think we need a test, but rather an auto-updater.

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): Configuration schema and PLAYWRIGHT_MCP_* env docs are out of sync with playwright-core runtime

2 participants