Skip to main content
A scenario is one journey through your app that has to keep working, written in plain English. Mini plays the journey on a device and judges each of its acceptance criteria to reach a verdict.
Mini drafts most of this as it explores your app and as you chat with it, and keeps it current when the app changes. You can review and edit every part. Open a scenario and its panel has two tabs: Overview for what the scenario checks, and Setup for what each run starts with.

Name and description

The name is short and action-led: Sign in with email, Add item to cart. It’s how the scenario shows up in runs and issues.
A scenario: its name, description and five acceptance criteria with Shared, iOS and Android tabs; on the right its last run, tags, dependency, test account, devices, files, skills and in-app purchases

One scenario, opened from Tests.

The description answers What journey does this cover? in a sentence or two: who the user is and what they’re trying to do. Mini reads it alongside the criteria to understand what the user is after.

Acceptance criteria

Each criterion is one condition Mini can observe on the screen, written as a short sentence. Mini plays the journey end to end and decides for each criterion whether it held. Write them in the order they happen in the journey. Three rules cover most cases:
  • One condition per line. If a sentence checks two things, split it.
  • Talk like a user. Name what is on the screen the way a user would: the label on the button, the title of the screen.
  • Skip the typing steps. When a test account is attached, Mini already knows how to sign in. Write about the state after sign-in.
More examples are in Writing criteria Mini can judge well. Every edit to a criterion is kept. Open Version history from the criterion’s menu to see each version with its pass and fail counts, and Revert to an earlier one.

When your app runs on several platforms

If the app has more than one platform, the criteria have a Shared tab and one tab per platform. The list of criteria is shared across platforms. On a platform’s tab you can:
  • Override a criterion, so Mini grades a different text on that platform. Everything else runs the shared text.
  • Turn off Run this scenario on that platform. Its runs there are marked skipped, never failed, and the scenarios that depend on it are skipped on that platform too. At least one platform stays on.

Tags

Tags group scenarios by feature area or journey family, like auth, checkout, onboarding or smoke. A scenario can carry several. Tags replace the scenario types of earlier versions.
Tests page grouped by tag, each scenario with its health, tags, test account and last run

The Tests page, grouped by tag.

  • Add a tag from the scenario’s Tags field: search for one or type a new name to create it.
  • Edit tags in Manage tags…, which lists every tag with the number of scenarios that use it. Rename, recolor, describe or delete a tag there, or create one with New tag. Tags are shared by everyone in the workspace.
  • Describe a tag. Mini reads a tag’s description while testing every scenario with that tag. Use it for context that applies to the whole group, like “Checkout runs against the staging payment provider”.
  • Filter and run by tag. The Tags filter narrows the scenario list, and a run can start By tag to include every scenario that carries the tags you pick. Pinned tags filter Scenarios, Runs and Issues when you open them, for you only.
From the CLI, minitest tags list shows every tag and how many scenarios carry it, and --tag on scenario create and run start works the same way. See the CLI reference.

Dependencies

A scenario can depend on others. Depends on in the Overview tab lists the scenarios it runs after.
  • A dependent scenario runs after its parent, on the same device, and starts where the parent left the app. Checkout, for example, can start from the signed-in session that sign-in left behind.
  • If the parent fails, the dependent is not run, and the run report says which scenario it was waiting on.
  • Scenarios without dependencies between them run in parallel on their own devices.
Mini adds dependencies on its own as you chat, when it spots a connection between scenarios. To see them all, switch the scenario board to the Dependencies layout. To change one, ask Mini in the chat, or use --depends-on on minitest scenario update.

Test files

Some journeys need a file on the device: a profile photo to upload, a PDF to attach, an audio clip to play. Upload these in Builds & test data → Files with Upload files, and add a note on what each file is for. Each file can be up to 25 MB. Then attach the files to the scenarios that use them: in the scenario’s Setup tab, click + Add file under Files. Mini places attached files on the device before the run starts, and picks them up from the gallery or the document picker the way a user would. A file that no scenario uses never reaches a device. For web apps, the Setup tab also has Camera: an image or a video looped into the browser’s camera, for journeys that scan a QR code or a document. It applies to desktop browser runs.

Test accounts

A scenario that needs a signed-in user carries one or more test accounts, under Test accounts in its Setup tab. Mini signs in with the right one when the journey needs it, and a scenario without an account runs as a visitor. Creating accounts, Google sign-in, email codes and phone sign-in are all covered in Test accounts and sign-in.

Devices

Devices in the Setup tab sets how many devices one run drives at once. Auto is one device per test account, which fits most scenarios. Raise it for journeys that need devices side by side: two accounts chatting live, or the same account signed in on two phones to test a session conflict. A scenario runs on up to 3 devices, and your workspace may allow fewer. When your workspace has physical phones assigned, you can also open Device requirements: give each device a name, like Parent and Child, and pin it to a phone model only when the scenario can’t pass on anything else. The phone itself is picked when the run starts.

Next steps

Test accounts and sign-in

Create the accounts Mini signs in with.

Write scenarios

Write scenarios from the dashboard, Slack or your editor.

How Mini tests your app

What happens to a scenario once a run starts.

Start a run

Run all scenarios, a few, or every one with a tag.