Asserts a natural-language condition about the current screen. Fails the test when the condition is not met. UseDocumentation Index
Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
assert for fuzzy or visual conditions; for
an exact-text check prefer
checkScreenContains, which
is deterministic and cheaper. The simplified form takes the condition as a
single string.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
that | string | Yes | The condition to assert. |
timeout | number | No | Milliseconds to wait for the condition to become true. |
saveAs | string | No | Variable to store this step’s return value on env.<name>. |
retries | number | No | Times to retry the step on failure before failing the test. |
skipped | boolean | No | Skip this step at execution time. |
comment | string | No | Free-form annotation kept with the step. |