Reviewing changes

For any test run that passed with auto-healing, the results viewer will display the steps added or modified by our AI with a unique status. The results viewer displays the exact sequence of actions taken over the course of the test, so steps that had to be re-attempted will appear multiple times:

The results viewer will also include a purple “AI changes for review” button that opens a detailed review dialog when clicked. This dialog will summarize the actions taken by the AI and display the exact step diffs in a YAML format:

The diff viewer for tests running on Momentic Cloud will compare the proposed steps against the live state of the test. For tests running locally, the diff viewer will compare the proposed steps against the state of the test at the time of the run. Be careful not to overwrite any changes that were made to the test after the test run.

Applying changes

For tests that exist on Momentic Cloud, you can apply the proposed changes by simply clicking the “Apply changes” button at the bottom of the dialog. This will instantly update the test. Please note that if any changes were made to the test after the test run, those changes may be overwritten. Please review the diffs carefully before approving.

For tests that exist locally, the auto-healing dialog will contain a separate tab labelled ‘Apply changes’. This tab will contain a CLI command that you can run on your machine to apply the proposed changes to your local test files:

This command must be executed in the project that contains the recovered test. When ran, the CLI will display a final diff against the local state of your test before prompting for approval:

Was this page helpful?