Catch regressions before your users do. Self-healing browser tests run on every deploy.

Ask your agent for a test and it writes one next to your workflows. It runs your tests on the branch before you deploy, and Buildprint records every step, screenshot and video.

Discount comes off after tax

Error
Steps
Enter the code and pay5s
Order is charged £38.001s
$ buildprint data search Order --constraint "field=Coupon code op=equals value=T$BUILDPRINT_TEST_RUN_ID" --json | jq -e '.result.responses[0].hits.hits[0]._source.Total == 38'false
Exit code
1
On failure
stop
Order summary shows the discount
Teardown
Delete the test coupon2s

Ask for a test and your agent writes it. Each test is a file in your app, next to the workflows it checks.

Every step is a shell command, so a run is fast, cheap and the same each time. AI only steps in for the checks a command can't make.

Tests live in your app

Tests version and deploy with your app. Your agent reads, writes and fixes them with the same tools it uses for your pages.

tests/checkout/apply_discount.ts
import { test, step, el } from "@buildprint/bubblescript/testing";
import { login } from "../components/login";
const code = el("1739714572204x365566571452809800");
const pay = el("1739714784407x550193182934337150");
export default test("apply_discount", {
name: "Discount comes off after tax",
description: "A £10 code on a £48 order charges £38.00.",
requires: [code, pay],
steps: [
login({ email: "tester@example.com", page: "checkout" }),
step({
name: "Enter the code and pay",
run: `agent-browser fill ${code} T$BUILDPRINT_TEST_RUN_ID && agent-browser click ${pay}`,
}),
],
});

Your agent checks the rest

For checks like a layout or a chart, the run takes a screenshot and your agent decides pass or fail.

Order summary shows the discount

Check the summary lists the discount on its own line

The summary shows Discount −£10.00 above the total.

Pass when
A Discount line shows −£10.00 above the total.
Fail when
The line is missing, or the layout overlaps.

Reuse common steps

Write the login once and call it from every test with its own parameters.

ComponentsReusable steps shared by tests
  • login(email, page)
  • add_to_cart(product)
  • fill_address(country)

Each run brings its own data

Setup creates the records a test needs and teardown removes them, so runs never trip over each other.

Setup
Create a £10 coupon
$ buildprint data create Coupon --set "Code=T$BUILDPRINT_TEST_RUN_ID" --set "Amount=10"
Teardown
Delete the test coupon
$ buildprint data search Coupon --constraint "field=Code op=equals value=T$BUILDPRINT_TEST_RUN_ID" --json | jq -r '.result.responses[0].hits.hits[]._source._id' | xargs -r buildprint data delete --confirm

Your agent runs one test or all of them. Buildprint records every run.

Tests run in a real browser against your branch, from your machine or your agent's. Run the folder you changed while you build, and every test before you deploy.

One folder per feature

Keep each feature's tests in one folder, and run the checkout folder while you work on checkout.

checkout3Run folder
  • Discount comes off after taxError2m ago
  • Pay for a digital orderPassed2m ago
  • Expired codes are refusedPassed2m ago
signup1Run folder
  • Sign up with emailPassed1d ago

A full check before you deploy

Run every test on the branch and the results come back as one batch with a pass count.

Batch: 4/5 passedfeature-discounts2m ago
  • ErrorDiscount comes off after tax21s
  • PassedPay for a digital order18s
  • PassedExpired codes are refused14s
  • PassedSign up with email26s
  • PassedInvite a teammate31s

The dashboard puts regressions first. You see which test broke this week and on which branch.

  • A screenshot of the failure

    The runner saves a screenshot when a step fails, next to the step's command and output.

  • A video of the run

    With ffmpeg installed, the runner records the run up to the first agent step.

  • Any screen size

    Run each test at desktop, laptop, tablet or mobile size.

  • The branch on every run

    Each run shows the branch and environment it ran against.

Pass rate
94%+4
Total runs
182+37
Regressions
1
Avg duration
22s
Regressions1
Discount comes off after tax
passederror·feature-discounts
2m ago

Common questions, answered.

Who writes the tests?

Your agent. Describe the flow you want checked and it writes the test, checks it and applies it like any other change to your app.

When do tests run?

Your agent runs them through the Buildprint CLI: the folder you changed after each edit, and every test on the branch before you deploy.

Where do they run?

In a real browser on your machine or your agent's, through the Buildprint CLI. Each run targets the branch of the workspace it starts from.

Will a copy change break my tests?

No. Tests find elements by their Bubble element id, which Buildprint adds to the page in run mode. Text and Bubble's own classes can change without breaking a test.

Do tests use AI credits?

Only a little. Steps are shell commands, so most of a run uses no AI. Your agent starts the run and decides any agent checks.

Do tests leave junk data in my app?

Not if they clean up. Each test creates the records it needs in setup, named with the run id, and deletes them in teardown.

Find the broken checkout before your customers do.

Connect your Bubble app, ask your agent for its first test, and run it on your branch.