The Danger of “It Worked on Screen”: Why the AI Era Needs Tests More, Not Less

Vibe coding repeats one loop: run it, and if something looks wrong, ask the AI to fix it. It is easy, but it cannot catch bugs in places you are not looking at.
Why checking by eye is not enough
There are conditions you haven’t tried
Empty input, very long input, dates at month end, a dropped connection. Bugs often appear under conditions that everyday use never tries.
Fixing one place breaks another
Ask the AI to fix one thing and it may rewrite unrelated parts too. A feature you checked earlier may have broken without your knowing.
The AI says “fixed”, but…
The AI will confidently reply “I’ve fixed it”, but confirming that it really is fixed is your job.
A test is a saved way of checking
“Testing” sounds difficult, but it simply means saving “with this input, this should be the result” in a form that can be run automatically any number of times. Write it once, and every fix can be checked in an instant.
An easy way to start
- Start with what matters: login, money calculations, saving data — the parts where breakage hurts.
- Have the AI write tests too: ask “write tests for this function, including empty input and boundary values”.
- Check that tests actually test something meaningful: AI-written tests sometimes check nothing, or treat a wrong result as correct. Read the tests as well.
- Turn every bug into a test first: write a test that reproduces the bug before fixing it, and that bug will never come back.
- Automate screen interactions too: tools such as Playwright can check browser interactions automatically.
Tests protect you
With tests in place, asking the AI for big changes stops being scary, because you will know at once if something breaks. The more you hand to AI, the more tests are worth.
Summary
“It worked on screen” only means it worked within what you checked. Starting with the important parts, gradually save your ways of checking as tests.

