AI Agents Hallucinate Domains: --allowed-origins Leaks
AI agents navigate to hallucinated domains when nobody gives them a URL. In my tests, Playwright MCP's --allowed-origins still let Chrome connect first.
AI agents navigate to hallucinated domains when nobody gives them a URL. In my tests, Playwright MCP's --allowed-origins still let Chrome connect first.
Playwright 1.65.0 still marks test_run and generator_write_test readOnlyHint: true, so auto-approve MCP clients skip the prompt. Here's a checker to catch it.
Trivy and Grype found 0 Chromium CVEs when I scanned the Playwright Docker image. How to scan Playwright Docker images properly, and a CI gate that catches it.
Parallel agents on one Playwright MCP connection overwrite each other, and isolatedContext won't stop it. Real runs, plus the per-agent setup that went 12/12.
Agentic testing vs Playwright tests answer different questions. A 60-run demo plus Slack's 200-run study show which one earns the PR gate, and where agents fit.
Playwright 1.65 aria snapshot changes rename buttons, drop collapsed text, and block inert actions. Pin one version for tests and MCP, and diff what agents see.
Streamed tool-call arguments are invalid JSON until the final chunk — here's the Playwright pattern that stops your AI agent from acting on half-parsed args.
Playwright MCP hands page WebMCP tools to agents by default. In my runs, agents routed around a broken button and said PASS. Here's the --no-webmcp gate.
Your Playwright test checks the confirm dialog renders — not that the irreversible action was blocked. Test the human-in-the-loop approval gate properly.
Hitting Stop on a streaming AI response clears the UI but leaves the LLM call running and billing. Here's how to test stream cancellation with Playwright.
A tool call commits but the response is lost, so your AI agent retries and double-charges. Here's the Playwright test a senior SDET writes for exactly-once.
Your browser clock, your server clock, and the model's idea of now rarely agree. Pin all three in Playwright before a date bug quietly reaches production.
Your gateway fails over to a backup model the moment the primary 429s — and every eval you own pinned the primary. Here's how to gate the fallback path.
A model upgrade that refuses benign requests passes every test you own — the div fills, the assertion holds. Build an over-refusal suite in Playwright.
Your AI invents an answer when the data isn't there — a liability, not a UX gap. Build a Playwright abstention suite that proves it says 'I don't know.'
Your AI feature passes with three test documents and degrades at fifty. Build a Playwright context-length gate that finds the cliff before production does.
Multi-agent LLM systems fail 41-86.7% of the time and the bug lives at the handoff, not in the agents. How to test agent-to-agent contracts in Playwright.
AI agents call tools with service credentials, so user authorization vanishes at the tool boundary. Test the confused deputy in Playwright before an auditor.
When the LLM picks which components render, DOM assertions become a coin flip. Here's the contract-test layer that makes generative UI testable in Playwright.
Playwright's team says you're better off without the healer agent. In my demo it found both regressions, marked them test.fixme(), and the CI run exited 0.
When to use Playwright AI agents: not until your suite is boring. The readiness floor nobody defends, why 200 tests is the wrong gate, and how to score yours.
Your Playwright tests assert the AI answer and never see the image tag it rendered. Build an LLM output render-sink contract test that catches the leak.
AI browser agents are real traffic now, and they stall on flows your users pass. Build a Playwright agent-readiness gate that catches the breakage in CI.
An honest AI testing tool evaluation: three self-healing tools, one enterprise suite, six planted bugs. Heal rates hit 87% — and every tool hid real ones.
A max-iterations cap hides livelock instead of catching it. Here's the Playwright test a senior SDET writes to detect cyclic tool calls before they hit prod.
Our agent filed beautiful bug reports and triage time went up. AI generated bug report quality is a gating problem, not a prompting one — here's the contract.
An agent called our checkout green while the tax was wrong by $4.10. On agentic AI test pass/fail reliability, the verdict is the one job an agent can't have.
A failed AI test hands you a DOM diff and nothing else. Wire W3C trace context from Playwright into OpenTelemetry GenAI spans and assert on the trace instead.
Single-turn Playwright tests pass while your agent forgets a constraint the user set six turns ago. Test multi-turn conversation memory in CI before it ships.
Your AI agent looks robust because CI only ever runs it against tools that succeed. Fault-inject the tool layer in Playwright and test how the agent recovers.
Karpathy's context engineering vs prompt engineering verdict, distilled for SDETs: why context wins and what it means for Copilot and Playwright AI agents.
Exact-step assertions make browser-agent tests flaky by design. Record the trajectory and assert invariants — goal, forbidden actions, step budget — instead.
Playwright's healer and generator agents loop on tokens. Without a per-PR AI token budget that fails the build, CI cost scales with flakiness, not value.
Parallel AI tool calls arrive in a different order every run, flaking your ordered Playwright assertions. Assert the set and the real dependencies instead.
Everyone quotes a heal rate for Playwright's Healer. Nobody sourced it. Build a shadow-mode harness and measure self-healing precision on your own suite.
Your AI agent test is green because you asserted on its reply. Assert on the tool calls it makes in Playwright instead — the pattern for agentic features.
AI-generated Playwright tests don't belong in your CI loop. Generate once, freeze to deterministic specs, and stop paying tokens — and flakiness — on every run.
Prompt-tuning your Playwright generator agent each run is a trap. Fix brittle, inline-selector tests with the seed file and agent definition you commit once.
Run Playwright MCP agents in CI and your app under test becomes untrusted input. Here's how prompt injection hijacks your agent — and how to contain it.
Self-healing agents that repair Playwright tests against the DOM optimize for green, not truth. Anchor them to the accessibility tree — the contract users see.
Playwright's Healer agent auto-fixes red tests to green. In a parallel enterprise suite, that's how real regressions ship silently. Here's the guardrail I use.
Most engineers think Claude Code has three primitives. It actually has two — skills and subagents. Here's when to use which, with token-cost benchmarks.
Playwright 1.56's planner, generator, and healer agents weren't reviewable at PR speed. 1.59's Screencast API turns each agent into a 90-second receipt.
Enterprise GitHub Copilot stuck on an older model? Three files give it project context, reusable prompts, and path-specific rules that improve output.
Search is not available in dev mode.
Run npm run build then
npm run preview:local to test search locally.