Snippet actions
Snippets can be used when you have steps that you want to reuse in multiple demos. You can define a snippet in the .demo
folder and reference it in your demo files.
Using a snippet
Use the snippet
action to reference a snippet in your demo.
Start by creating a snippet folder/file in the .demo
folder. For example, you can create a snippets
folder and a insert_and_highlight.json
file.
The contents of this file could look like this:
In your demo file, you can reference the snippet like this: