Repository navigation
Releases
Releases · yashh1323/auto-qa
v2.1.0 - Hardened Modal Isolation, ENV Secrets, Scoped Failure Context & Community Improvements
v2.1.0 - Hardened Modal Isolation, ENV Secrets, Scoped Failure Context & Community Improvements
Latest
What'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).
v2.0.0 - Zero-Token Playwright QA Engine & Dual-Mode MCP / Skill
Auto-QA v2.0.0
A 100% local-first, zero-cloud, $0-token-replay E2E Playwright QA engine for Claude Code, Google Antigravity, Cursor, and Windsurf.
Highlights
- Dual-Mode Operation: Standalone Agent Skill CLI (
ode scripts/cli.js) + Zero-dependency JSON-RPC 2.0 Stdio MCP Server (
ode scripts/mcp-server.js). - Compact Accessibility Surface Crawler (discover.js): Extracts interactive DOM controls + W3C accessibility trees (~1.2k tokens) with getBoundingClientRect() geometry to capture position: fixed sticky headers and modals.
- Self-Healing Semantic Executor (executor.js): Resolves targets locally via -> placeholder -> ARIA role -> attribute substring with active modal scoping ([role="dialog"]) and automatic dialog dismissal.
- Native Playwright .spec.ts Compiler (compiler.js): Compiles declarative plan.json files into standard @playwright/test TypeScript suites with est.step() blocks.
- Security Hardened (6/6 Verified): Parameterized code generation (AU-01), workspace path confinement (AU-02), HTTP/HTTPS protocol allowlisting (AU-03), YAML injection sanitization (AU-04), CSS/Regex escaping (AU-05), and PII hygiene (AU-06).