Skip to content

chore(scripts): auto-update config schema and env docs in README - #553

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

Follows up on Dmitry Gozman (@dgozman)'s feedback in #551 (comment) ("I don't think we need a test, but rather an auto-updater.") by extending scripts/update.js instead of adding a README test.

Summary

  • Extend scripts/update.js to auto-update README.md in addition to syncing skills/playwright-cli/:
    • Configuration file schema (<!--- Config generated by scripts/update.js -->): resolves upstream packages/playwright-core/src/tools/mcp/config.d.ts for the pinned playwright-core commit (via sibling ../playwright git history if present, or raw.githubusercontent.com/<gitHead> / local ../playwright) and regenerates the TypeScript Config schema block.
    • Configuration via env (<!--- Env generated by scripts/update.js -->): derives active options from tools.decorateMCPCommand in playwright-core/lib/coreBundle, filters against PLAYWRIGHT_MCP_* environment variables present in coreBundle, and preserves the CLI default (headless by default) for PLAYWRIGHT_MCP_HEADLESS.
  • Add generation markers in README.md and run node scripts/update.js twice to verify idempotency and refresh both sections against playwright-core@1.66.0-alpha-2026-11-18 (removing saveVideo, outputMode, PLAYWRIGHT_MCP_SAVE_TRACE, PLAYWRIGHT_MCP_SAVE_VIDEO, and "Playwright MCP Bridge").
  • Document the README.md sync step under scripts/update.js in .claude/skills/dev/roll.md.

Verification

  • node --check scripts/update.js
  • node scripts/update.js (run twice, verified idempotent on README.md)
  • git diff --check
  • npx playwright test --workers=1 --reporter=list: 9 passed (27.9s)

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

1 participant