cd /news/ai-tools/stop-letting-ai-write-your-tests-unt… · home topics ai-tools article
[ARTICLE · art-134657] src=promptcube3.com ↗ pub= topic=ai-tools verified=true sentiment=↓ negative

Stop letting AI write your tests until you realize it loves green ticks that mean absolutely nothing.

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.

by read3 min views1 publishedSep 19, 2026
Stop letting AI write your tests until you realize it loves green ticks that mean absolutely nothing.
Image: Promptcube3 (auto-discovered)

A 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.

What actually works in production #

Converting bug reports into failing tests

This 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.

Diagnosing flaky tests

We'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.

Cleaning up messy DOM locators

If 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.

Where the wheels fall off #

Zero domain awareness

AI 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.

The mobile web struggle

The 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.

Flutter is a disaster

If 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. Next Google and NVIDIA are teaming up with Emerald AI to make data centers more flexible →

All Replies (3) #

I'm exhausted by this. I spent three hours debugging a "passing" test that was just asserting true === true using Copilot.

Finally found a decent list. I'm curious if any of these actually ship via TCS or if it's all DHL?

Finally, a real question. I'm curious if you're logging the DOM snapshot or just relying on Healer.io for the diff?

── more in #ai-tools 4 stories · sorted by recency
── more on @playwright 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/stop-letting-ai-writ…] indexed:0 read:3min 2026-09-19 ·