> ## Documentation Index
> Fetch the complete documentation index at: https://www.minitap.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# What a scenario is

> The parts of a scenario, from its acceptance criteria to its tags, dependencies, test files, test accounts and devices, and what each one changes in a run.

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.

```text theme={"theme":{"light":"github-light","dark":"vesper"}}
Name          Add item to cart
Tags          checkout, smoke
Description   A signed-in shopper adds a product to the cart from its page.
Depends on    Sign in with email
Test account  Free user

Acceptance criteria
1. The product page shows an "Add to cart" button.
2. After tapping "Add to cart", the cart icon shows a badge with "1".
3. Tapping the cart icon opens the cart with the product listed.
```

Mini drafts most of this as it explores your app and as you chat with it, and [keeps it current](https://www.minitap.ai/docs/minitest/suite/mini-maintains-your-suite.md) 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](https://mintcdn.com/minitap-30239763/QCLbAMcddko_3eZy/minitest/images/app/scenario-detail.png?fit=max\&auto=format\&n=QCLbAMcddko_3eZy\&q=85\&s=0d9b65617d08b4d4e6bad91f2968d6ff)

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.

| Hard to judge | Easy to judge |
| - | - |
| Sign-in works and the profile is correct | Two criteria: "The home screen greets the user by first name." and "The profile tab shows the account's email." |
| The `btn_submit` element is enabled | The **Submit** button can be tapped |
| The user types their email and password | The home screen for the signed-in user is displayed |

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](#test-accounts) 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](https://www.minitap.ai/docs/minitest/get-started/how-mini-tests.md#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](https://mintcdn.com/minitap-30239763/dKiS2PJCVmjStdUQ/minitest/images/app/tests.png?fit=max\&auto=format\&n=dKiS2PJCVmjStdUQ\&q=85\&s=d0ef976079031ce01f428bb56b7d57e5)

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](https://www.minitap.ai/docs/minitest/reference/cli-commands.md).

## 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](https://www.minitap.ai/docs/minitest/setup/test-accounts.md).

## 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](https://www.minitap.ai/docs/minitest/setup/devices.md), 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

> [card] [Test accounts and sign-in](https://www.minitap.ai/docs/minitest/setup/test-accounts.md)
>
> Create the accounts Mini signs in with.

> [card] [Write scenarios](https://www.minitap.ai/docs/minitest/suite/authoring.md)
>
> Write scenarios from the dashboard, Slack or your editor.

> [card] [How Mini tests your app](https://www.minitap.ai/docs/minitest/get-started/how-mini-tests.md)
>
> What happens to a scenario once a run starts.

> [card] [Start a run](https://www.minitap.ai/docs/minitest/runs/triggering-a-run.md)
>
> Run all scenarios, a few, or every one with a tag.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.