Dev.to WebDev ๐Ÿ›  Dev ๐Ÿ‘ 0 ๐Ÿ“– 2 min read

My AI tester took 9 minutes and proved nothing. A week later: 1 minute, one real bug.

Originally published at omerbinsaleem.com by Omer Bin Saleem (Omer Saleem). When an agent disappoints, most people swap the model. The fix was what it knows before it starts: a steps file instead of a script, a playbook

Originally published at omerbinsaleem.com by Omer Bin Saleem (Omer Saleem).

When an agent disappoints, most people swap the model. The fix was what it knows before it starts: a steps file instead of a script, a playbook, and a lessons file it writes itself.

What changed

  • Before: a new browser script per ticket, guessed selectors, one check that passed because the thing it looked for never existed. 9 minutes, three runs, no proof.
  • After: one run, about a minute, the right selectors on the first try, taken from the code, and a real bug reported instead of rerunning until green.

How to do it

  1. Steps, not scripts. The agent writes a short steps file for the ticket; one shared runner records the video and the screenshots. It never writes browser code again.
  2. A playbook. Where things live in the app, what bites (the login flow, the slow pages, the modals), and how to report a result.
  3. A lessons file. After every run the agent adds one line: what went wrong and what to do next time. The next run reads it first.
  4. Selectors from the code, not from guesses. The agent reads the component before it clicks.
  5. Judge the result on proof: a recording and a failing step, not a green log.

Prompt to copy

You test changes in a browser. Before you start, read PLAYBOOK.md (where things live, what bites, how to report) and LESSONS.md (one line per past mistake).
Write the test as a short steps file, not a script; the runner records video and screenshots. Take every selector from the component code.
Report: what you did, the screenshot of each step, and any bug with the exact step that failed. After the run, add one line to LESSONS.md: what went wrong, and what to do next time.

I am Omer Bin Saleem, a frontend chapter lead who builds with AI every day. One practical AI hack a day at omerbinsaleem.com. LinkedIn: omer-bin-saleem ยท Instagram: @iomerbinsaleem.

๐Ÿ“ฐ Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.