---
title: "Browser tests that check your app's flows still work"
description: "Write a browser test in plain language, then run it on your Hercules app by hand, on every publish, or daily or weekly. Browser tests are in beta today."
---

# 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.

- **Plain-language tests.** Instructions, success criteria and optional cleanup steps.
- **Runs when you choose.** By hand, on every publish, or daily or weekly.
- **Evidence for every run.** Screenshots, a recording and a transcript.

## 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](https://hercules.app/docs/apps/browser-tests#how-do-i-create-a-test)

### 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](https://hercules.app/docs/apps/browser-tests#how-do-i-run-a-test)

### 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](https://hercules.app/docs/apps/browser-tests#are-tests-logged-into-my-app)

### 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](https://hercules.app/docs/apps/browser-tests#how-do-i-view-previous-tests)

### 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](https://hercules.app/docs/apps/browser-tests#which-version-of-my-app-gets-tested)

## How do you set up a test?

### 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. 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. 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.

## 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](https://hercules.app/pricing).

## Related features

- Use [Audits](/features/audits) to review design, code and accessibility when you want checks beyond your tested flows.
- Use [Publishing](/features/publishing) to put page changes live when the preview is ready.
- Use [AI credits](/features/ai-credits) to check your shared balance when you track what test runs cost.

## How do you get started?

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

## Frequently asked questions

### 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](https://hercules.app/docs/apps/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.

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Can I set the screen size?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "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"
      }
    },
    {
      "@type": "Question",
      "name": "Can a test sign in as me?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "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."
      }
    },
    {
      "@type": "Question",
      "name": "Can I cancel a run?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "You can cancel a browser test run while it's pending or in progress."
      }
    },
    {
      "@type": "Question",
      "name": "Why was my scheduled test turned off?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "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."
      }
    }
  ]
}
```
