The current local format for Momentic tests are YAML files that are directly serialized from Momentic’s internal data model. This has many implications:
https://github.com/momentic-ai/examples/blob/main/single-project/input-from-csv-test.test.yaml
There are three main changes as part of this proposal.
Momentic tests will still serialized to YAML to allow us to capture important configurations and settings like retries, browsers, environments, etc.
Instead of steps containing a list of objects, it will now be a list of strings representing steps. Each string will adhere to a custom grammar. The specific syntax of the grammar is still under development.
Modules will still be in their own .module.yaml file but any tests containing modules will also serialize the contents of that module. This will mean that any changes in modules will result in diffs generated for all tests containing that module.
Example grammar strings:
Type "username" into "the password input"Click "create button"Nesting and iframe scoping are prepended: