# Turn a bug into a test

Source: https://zshot-app.com/help/agent-regression-test/
Markdown: https://zshot-app.com/help/agent-regression-test/index.md
Section: [Help](https://zshot-app.com/help/) › Navigate
Kind: Agent

Have an agent check one behavior, then keep a Playwright script that fails until the bug is fixed.

Requires a Pro license.

Video: [agent-regression-test.webm](https://zshot-app.com/media/help/agent-regression-test.webm)

## What to do

1. **Paste it** Paste this into the URL field: `https://zshot-cli.com/example_assets/zoomburgh/`
2. **Say what to check** Click the settings button beside the URL field, then Navigate. Choose your model under Model, and describe the behavior: `Tap Arbor Outfitters in the watchlist once, then check that its news headlines appear within five seconds. Do not tap it again.`
3. **Set the goal** Click Advanced Options, then Stop condition, pick Text and enter what the page should show, then turn on Capture anyway if the goal is impossible. `Analysts lift ARRC price target`
4. **Keep the test** Click Recordings, turn on the Playwright script, then click Save.
5. **Capture it** Click Capture. The result shows where the page ended, and the script repeats the steps and fails until the bug is fixed.

Do this from the command line: https://zshot-cli.com/examples/agent-regression-test/
Reference: [--navigator-captures-playwright](https://zshot-cli.com/reference/flags/navigator/navigator-captures-playwright/)

## Related

- [Log in, then capture](https://zshot-app.com/help/navigate-login/) — An agent logs in and captures the page behind it.
- [Upload a file, download the result](https://zshot-app.com/help/enhance-leads/) — An agent uploads a file and brings back the result.

## Navigation

- [ZShot](https://zshot-app.com/)
- [Help](https://zshot-app.com/help/)
- [Download ZShot](https://zshot-app.com/download.html)
- [CLI documentation](https://zshot-cli.com/)

Site index: https://zshot-app.com/llms.txt

