Skip to main content

Documentation Index

Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Module paths resolve relative to the YAML file that contains the step. Inputs override the module’s defaultParameters for this invocation. Inputs accept three shapes: raw JavaScript expressions (the default), { string: ... } for explicit literals, and { javascript: ... } for explicit expressions.

Parameters

ParameterTypeRequiredDescription
pathstringYesPath to the .module.yaml file, relative to the current file.
inputsRecord<string, string | { string } | { javascript }>NoInputs to pass to the module’s parameters.
saveAsstringNoName of the variable to write this step’s return value to.
retriesnumberNoNumber of times to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.
commentstringNoFree-form annotation kept with the step.

Shorthand

Module path as a single string. Use when the module needs no inputs.
- module: ./create-local-mobile-test.module.yaml

Examples

- module:
    inputs:
      url:
        javascript: "'https://www.ycombinator.com'"
    path: ../modules/create-ci-test-with-url.module.yaml
- module:
    inputs:
      TEST_NAME:
        javascript: env.CREATED_TEST_NAME
      NEW_TEST_BASE_URL:
        string: https://storage.googleapis.com/staging-test-sites/neverssl.html
      NEW_TEST_NAME:
        javascript: env.CREATED_TEST_NAME
    path: ./fill-new-browser-test-form.module.yaml
- module:
    inputs:
      STEP_TYPE:
        string: ELEMENT CHECK
    path: ./add-step-to-end.module.yaml

Notes

Module paths must not start with file://. Use a plain relative path. Inputs accept three shapes: a raw value (interpreted as a JavaScript expression, e.g. env.QA_EMAIL), { string: "literal" }, or { javascript: "expr" }.