AI Tests You Can't Trust? Flaky Agents, Playwright MCP, Google EGM TGNS200
Categories: Podcasts , Test Guild News Show
New tools like Playwright MCP’s background mode and the Trouser browser enable AI agents to test applications without interfering with user focus or requiring manual setup. Strategies for maintaining trust in AI-written tests include treating test data as locked files and using Google’s Elephant Goldfish Model to validate agent plans before code execution.
Test Guild News Show
Test Guild News Show hosted by Joe Colantonio has a round up of Software Testing Tool news and updates. Released as audio and video. Show notes have links to source of each news update.
- https://testguild.com/podcasts/news/
- https://www.youtube.com/playlist?list=PL9AgRtJkydU1WSjOuUkOeRFTDN5dPyL6u
Episode Details
- Show Notes: https://testguildnews.libsyn.com/ai-tests-you-cant-trust-flaky-agents-playwright-mcp-google-egm-tgns200
- Published: 2026-11-16T20:22:00Z
- Duration: 09:54
- Author: Unknown
Overview
Microsoft Playwright MCP released version 0.085 on November 9th, adding a background mode that keeps the connected tab inactive and unfocused so an agent can work without taking over the screen. A new “locate only visible true” config option restricts locators to visible elements. Trouser, a real WebView 2 browser with automation built in, went open source, letting a tester and an AI agent explore the same session with checks using Axe Core, Retire.js, and gremlins.js.
Cody of AI Infrastructure at the University of Texas at Austin published a setup guide for using AI agents to turn Jira and linear tickets into Playwright tests, with each spec going through a pull request so CI runs it from then on. Matteo at ThoughtWorks Italia interviewed 26 developers and proposed “test as data,” where tests are written in the customer’s language and stored in text files like tables, YAMLs, or CSV, with the AI writing a small runner to execute them.
Google open-sourced the Elephant Goldfish Model (EGM), splitting spec review into a deep-context “elephant” agent and zero-context “goldfish” subagents that flag unstated assumptions before code is written. Paul demonstrated testing a voice interface with Playwright where a human must press a confirm button before any action. Sadat launched an experiment asking whether a flaky test can make a coding agent undo a good fix, defining three harmful change labels: test tampering, phantom fix, and false revert.
What If
-
What if you let your AI agent test in the background so it never steals your screen?
- Move: Install Playwright MCP 0.085 and pass the background flag with the browser extension so the connected tab stays inactive and unfocused.
- Why Now?: Version 0.085 released November 9th and includes fixes so tool calls no longer hang during the settled delay when page timers are throttled or paused.
- Expected Upside: You could potentially run agent-driven tests alongside your own work without the agent taking over your display, though Chrome throttles timers and animation frameworks in background tabs, so time-sensitive assertions may behave differently.
-
What if you stored your AI-generated test expectations as locked data files instead of trusting refactored code?
- Move: Write customer tests in the customer’s language, put inputs and expected outputs into YAML or CSV files, have the AI write a small runner, and lock those data files in CI.
- Why Now?: Matteo’s interview of 26 developers found teams don’t trust AI-refactored tests; a new feature triggers refactoring and the tests are “quickly forgotten.”
- Expected Upside: You could potentially catch silent assertion weakening in CI by verifying data files haven’t changed unexpectedly, giving you a stable, human-readable baseline independent of the AI’s code changes.
-
What if you had a zero-context reviewer flag your AI agent’s spec before it writes a single line of code?
- Move: Adopt Google’s open-source EGM plugin, letting the elephant agent draft the design doc section by section while goldfish subagents read only the draft and its references to flag unstated assumptions.
- Why Now?: EGM is free, open source, works with Claude, Codex, and Antigravity, and thousands of Google engineers already use it.
- Expected Upside: You could potentially resolve tradeoffs and approve the spec before code generation, reducing the risk of an agent filling gaps with assumptions that never made it into the page.
Takeaway
- Install Playwright MCP 0.085 and enable the background flag so your AI agent’s browser tab stays inactive and unfocused during test runs.
- Prefer the Playwright CLI over the MCP server for agents with shell access; it runs headlessly by default and supports several named browser sessions at once.
- Store AI-generated test expectations in text files (YAML, CSV, tables) and lock them in CI so refactored tests cannot silently alter assertions.
- Run mutation testing on AI-written tests to confirm they actually catch faults, and keep human exploratory testing in your workflow.
- Before letting an AI agent write code, use EGM’s two-role review to have goldfish subagents flag unstated assumptions and unclear requirements, then approve the spec before generation begins.
For a PDF of longer Software Testing Podcast Episode Summaries with Briefing Notes and more detailed summary notes, visit EvilTester Patreon Podcast Summaries.