run_and_assert
Run a Maestro flow on a device, then assert the resulting screen state. Skips assertions when the flow fails so the original failure stays clear.
Instructions
Run a Maestro flow, then check assertions against the screen it left behind.
The flow's own result is always reported, even when assertions cannot run. Assertions are skipped entirely when the flow failed, because checking expectations after a known-broken run produces a second, noisier failure that buries the first one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Maestro -e variables for the flow. | |
| flow | Yes | Maestro flow file to run. | |
| device | No | Device serial. Omit to take any single free device from the pool. | |
| timeout | No | Flow timeout in seconds. | |
| assertions | Yes | Expectations checked against the screen once the flow finishes. | |
| screenshot | No | Capture the resulting screen as evidence. |