{"slug": "stop-letting-ai-write-your-tests-until-you-realize-it-loves-green-ticks-that", "title": "Stop letting AI write your tests until you realize it loves green ticks that mean absolutely nothing.", "summary": "A developer with six months of experience using AI for test automation reports that AI-generated tests frequently pass while asserting nothing, citing a Playwright test that took 4 seconds to generate and only clicked a button without verifying page state. The developer estimates AI handles about 60% of the tedious typing when converting bug reports into failing tests and is correct roughly 50% of the time when diagnosing flaky tests, but says 80% of critical bugs caught came from tests no AI would generate, and that Flutter support is consistently wrong due to thin training data.", "body_md": "# Stop letting AI write your tests until you realize it loves green ticks that mean absolutely nothing.\n\nA coworker recently bragged about a Playwright test that took 4 seconds to generate. It passed, sure, but it asserted nothing—it just clicked a button and checked if the page still existed. It's the ultimate \"fake it till you make it\" success story: a green checkmark with zero actual value. I've spent the last six months leaning on AI for my automation workflow (mostly Playwright for web and Flutter for mobile), and while some parts are legit, a lot of the hype is just noise.\n\n## What actually works in production\n\n**Converting bug reports into failing tests**\n\nThis is the only real \"magic\" part. When QA sends a plain-English report like \"Cart total does not update when you remove the last item while a coupon is applied,\" I feed that and my page object file into the model. I get a usable failing test in under a minute. I still have to fix the assertions because the AI is optimistic, but it handles the imports, fixtures, and navigation. That kills about 60% of the tedious typing.\n\n**Diagnosing flaky tests**\n\nWe've all dealt with that one test that fails once every 20 runs, written 14 months ago by someone who already quit. When I'm staring at nested waits and hardcoded 8000ms timeouts, I paste the test and the trace into the AI. It's right about 50% of the time regarding the race condition, but even a wrong hypothesis is faster than staring at a screen in silence.\n\n**Cleaning up messy DOM locators**\n\nIf you give it a chunk of HTML, it'll usually steer you toward `getByRole` or `getByLabel` instead of the CSS selector nightmare you were probably about to write. Think of it as a linter that actually has an opinion.\n\n## Where the wheels fall off\n\n**Zero domain awareness**\n\nAI loves the \"happy path\" because that's what's in the documentation. It will never ask, \"What happens if the payment webhook hits us twice?\" That kind of intuition comes from getting paged at 2 AM because of a duplicate webhook, not from pattern matching. I'd estimate 80% of the critical bugs I've caught came from tests that no AI would ever think to generate.\n\n**The mobile web struggle**\n\nThe models are basically desktop-centric. The moment you ask about touch targets, viewport-specific behavior, or a sticky header blocking a click on a 390px screen, the quality tanks. It'll confidently hand you a desktop solution and tell you it's for mobile. Device emulation and orientation handling still require a human who has actually seen the screen.\n\n**Flutter is a disaster**\n\nIf you're using Flutter, good luck. The training data is thin. When I ask for a widget test, it gives me something that looks plausible but uses an API from two versions ago. If I ask for a smoke suite, it just gives me web patterns wearing a Flutter costume. I ended up building my smoke and regression setup for Flutter almost entirely by hand because the AI suggestions were consistently wrong.\n\n[Next Google and NVIDIA are teaming up with Emerald AI to make data centers more flexible →](https://promptcube3.com/en/threads/9506/)\n\n## All Replies （3）\n\nI'm exhausted by this. I spent three hours debugging a \"passing\" test that was just asserting `true === true` using Copilot.\n\nFinally found a decent list. I'm curious if any of these actually ship via TCS or if it's all DHL?\n\nFinally, a real question. I'm curious if you're logging the DOM snapshot or just relying on Healer.io for the diff?", "url": "https://wpnews.pro/news/stop-letting-ai-write-your-tests-until-you-realize-it-loves-green-ticks-that", "canonical_source": "https://promptcube3.com/en/threads/9520/", "published_at": "2026-09-19 16:02:24+00:00", "updated_at": "2026-09-19 16:53:16.375653+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-products"], "entities": ["Playwright", "Flutter", "Copilot", "Healer.io", "TCS", "DHL"], "alternates": {"html": "https://wpnews.pro/news/stop-letting-ai-write-your-tests-until-you-realize-it-loves-green-ticks-that", "markdown": "https://wpnews.pro/news/stop-letting-ai-write-your-tests-until-you-realize-it-loves-green-ticks-that.md", "text": "https://wpnews.pro/news/stop-letting-ai-write-your-tests-until-you-realize-it-loves-green-ticks-that.txt", "jsonld": "https://wpnews.pro/news/stop-letting-ai-write-your-tests-until-you-realize-it-loves-green-ticks-that.jsonld"}}