You can now view old versions of snippets from within the mabl app! The snippet change history dropdown is helpful for users who want to track changes to their snippets and restore old snippet versions.
To access older versions of a snippet, take the following steps:
- Go to the Snippets page:
Tests > Snippets.
- Click on a snippet.
- The Snippet Editor includes a new dropdown displaying information about the currently selected snippet version. Click on that bar to select and view an older version of the snippet.
Upon saving, you will create a new version of that snippet based on the currently visible values of the snippet parameters and code.
Snippet change history is only accessible for snippets edited from the Snippets page:
Tests > Snippets. Although saving a snippet from within the mabl Trainer does create a new snippet version, the Snippet Editor in the mabl Trainer does not include the version dropdown.
Snippets do not support branching. As a workaround, you may save a non-reusable snippet inside a flow and save the flow to a branch.