DEV Community

Cover image for I built Bug to Test to turn browser recordings into Playwright regression tests
Ankit Pandit
Ankit Pandit

Posted on AI-assisted

I built Bug to Test to turn browser recordings into Playwright regression tests

A browser bug report often has enough detail to reproduce the problem once. The next developer still has to turn those steps into a test that can run in CI. I built Bug to Test to make that handoff easier.

The demo starts with a profile settings form. The app says Saved after you change the display name. Reload, and the change is gone. The expected outcome is simple: the name should still be there. Bug to Test takes the Chrome DevTools Recorder export and that outcome, generates a plain TypeScript Playwright test, and runs it against the buggy and fixed builds.

The first run observes an empty field. The second observes the saved name. Both runs use the same test and produce screenshots and a short report. The test can then be reviewed and added to the project's test suite.

One edge case made the workflow better. A test once treated a click that landed on an HTTP 503 page as evidence that the expected element was missing. The runner now reports that it was unable to verify the bug, and an automated regression check covers it. That distinction matters when a red run is supposed to show why the fix was needed. Other DEV write-ups explore related evidence workflows. I don't just review the agent's code anymore. I ask for proof, by davequinta · Playwright Trace Viewer, by vanessa_sastre

Try it from a Node.js 22+ project:

npm install -D https://github.com/AnkitPandit120/bug-to-test/releases/download/v0.1.1/bug-to-test-cli-0.1.1.tgz
npx bug-to-test install-browser
npx bug-to-test demo
Enter fullscreen mode Exit fullscreen mode

To add the skill to your coding agents:

npx skills add AnkitPandit120/bug-to-test --skill bug-to-test --agent antigravity codex claude-code
Enter fullscreen mode Exit fullscreen mode

The README has install instructions for more agents and five examples based on real open-source fixes. The first release supports same-origin flows in a desktop Chromium tab. If you try it on a bug, I’d like to know whether you’d merge the generated test and what you had to edit first. README and issue tracker

Built and written with AI assistance.

Top comments (0)