Repository navigation
v2.1.0 - Hardened Modal Isolation, ENV Secrets, Scoped Failure Context & Community Improvements
LatestWhat's New in v2.1.0
Built directly from real engineering feedback and edge-case testing on our Playwright MCP architecture:
1. Hardened Active Modal Isolation & Native checkVisibility()
- Replaces fragile
.first()dialog checks with CSS stacking-context (z-index,:modaltop-layer,transform) modal selection across light DOM, slots, and open Shadow DOM—avoiding false misses on inert/hidden Radix or Headless UI portals (scripts/executor.js). - Unifies
scripts/discover.jsandscripts/executor.jsviascripts/browser-dom.js, using Chromium's nativeelement.checkVisibility({ checkOpacity: true, checkVisibilityCSS: true, contentVisibilityAuto: true })(with fallback for older runtimes), paired withgetBoundingClientRect(),display: contentschild/text-node checks, and explicithidden,inert, andaria-hidden="true"checks across open shadow hosts.
2. Strict ${ENV_VAR} Secret Placeholders & Pre-Truncation Redaction
- Supports
${QA_EMAIL},${QA_PASSWORD}, and${ENV_VAR}placeholders in URLs, actions (values and field names), and assertions without storing credentials inplan.jsonor compiled.spec.tsfiles (scripts/env-utils.js,scripts/compiler.js,scripts/executor.js). - Enforces strict identifier syntax (
^[A-Z_][A-Z0-9_]*$), fail-closedrequireEnv()lookups in compiled specs,AUTO_QA_ALLOWED_ENV_PREFIXES(QA_,AUTO_QA_,TEST_default in MCP mode), pre-registration of permitted secrets before logging/truncation, and scrubbing of raw,encodeURIComponent,URLSearchParams, and lowercase hex variants across console logs, errors,failure-step-N-context.json, Markdown reports, and JSON reports.
3. Failure-Time Scoped Context Snapshots & Freshness Guardrail
- When a step fails,
executor.jsreads the live failing DOM (scoped strictly to the active blocking modal if open) before screenshot capture or browser teardown and writesfailure-step-N-context.json(capped at50/50/30elements + 16KBariaSnapshot()) right alongsidefailure-step-N.png. - Records
capturedAtand GitHEAD(gitHead) in failure snapshots and addscheck-context-freshnessCLI +auto_qa_check_context_freshnessMCP tool (scripts/context-freshness.js) to warn agents if source files orHEADchanged since capture.
4. Dynamic Counter/Badge Normalization Fallback
- Adds
normalizeDynamicLabel()fallback strictly after exact and substring strategies fail, allowing plans targeting"Cart (1)"or"Notifications (4)"to click"Cart (2)"or"Notifications (14)"while respecting active blocking modals and preserving numeric-only targets (>= 2chars and at least one letter).
5. Security, Atomic Outputs & Verification
- Waits on a shared
WeakMapCDP redirect/SSRF guard installation before navigation, rejects empty/unusable DNS lookups (scripts/url-utils.js), and writes reports, specs, and artifacts atomically without following links (scripts/write-output.jsacrosscli.js,executor.js, andmcp-server.js). - Automated Test Coverage (
npm test):26/26checks passing (9/9security audit units +17/17v2.1.0 Playwright/CLI/MCP feature tests).