Browser tests that check your app's flows still work

Browser tests, in beta, follow a flow in your app the way a user would and tell you whether it still works. You write the steps in plain language and say what must be true for the test to pass. When a change breaks checkout, the run shows the step where it went wrong.

What can browser tests do?

Write a test like you'd brief a new hire

A test has instructions, one or more success criteria, and optional cleanup that undoes what it created, such as deleting the order it placed. Be specific about what to do and what to look for.

Create a test
Test editor with plain-English instructions and success criteria
Test triggers set to run daily at 9:00 AM

Stop clicking through checkout yourself

If you check key flows by hand before each release, a browser test repeats that check every time and records it. Run on publish suits flows you change often, and a daily or weekly schedule suits the rest.

Run a test
Test settings with Sign in as and the option to add a second test user

Test as a user, a visitor or two people

Signed in, the default, runs as a dedicated test user, and Signed out runs as a visitor. For a handoff, such as a manager who creates a job and a technician who completes it, turn on Test with a second user.

Sign in as

See why a run failed

Each run marks every success criterion met or unmet, with the evidence Hercules observed. A failed run means the app missed a criterion, and an errored run means something stopped the test first, such as the app not loading.

Run history
Version to test menu with Latest changes and Currently published

Test the preview or the live app

Run a test against your preview, the version you're still building, to find problems before you publish. Or point it at the published app to check what your users see.

Which version gets tested

How do you set up a test?

  1. 1. Describe the flow

    In the Tests tab, create a test and write the instructions.

    Go to the products page. Add the first product to the cart, then go to checkout and place the order.

    Hercules follows these steps in a browser.

  2. 2. Say what success looks like

    Add success criteria and a cleanup step that deletes the test order.

    An order confirmation page appears with an order number. The new order shows in the orders list.

    Hercules marks each criterion met or unmet at the end of the run.

  3. 3. Choose when it runs

    Click Run once and watch the browser live, then turn on Run on publish. Hercules then checks checkout every time you publish.

What could a business do with it?

In this hypothetical example, a landscape supply yard's office manager tests the yard's quoting app with Test with a second user on. The first user requests a quote for 12 pallets of pavers, and the second, an office user, checks that it reaches the pricing queue.

She runs the test against the preview before each publish. After a change to the quote form, the run fails, and the recording shows the request never reached the queue. Hercules fixes the form, and the next run confirms that the test request reaches the pricing queue.

Related features

Frequently asked questions

What should you know before you start?
  • A test runs as the user you choose, so it can't test the sign-in or onboarding flow itself.
  • Each run uses AI credits, and longer flows use more. Running out of credits stops a run with an error.
  • If your app has roles, ask Hercules to give each test user the role it needs.
  • See how credits work on the pricing page.
Can I set the screen size?

Set a custom viewport, the browser window size, to test a desktop, tablet or phone layout. Leave it blank for the default size. Browser tests

Can a test sign in as me?

A browser test can run as you, with your data and permissions, only on apps that don't use Hercules Auth. Those apps show the option under Sign in as.

Can I cancel a run?

You can cancel a browser test run while it's pending or in progress.

Why was my scheduled test turned off?

Hercules turns a test off after five scheduled runs in a row fail to start. That can happen when the app isn't published or the test can't sign in, and runs stopped for lack of credits don't count. Fix the cause and turn the test back on.

How do you get started?

Write a test for the flow your customers use most. Start building.