Golden files are the source of truth for snapshot-based steps like Visual diff. By default they’re stored on the dashboard; opt into local storage to keep them alongside your tests.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.
Enable local storage
-
In your Visual diff step, omit the
screenshotkey so Momentic stores the snapshot locally: -
Snapshots are written to
<momentic-root>/golden/visual-diff/<command-id>.jpgby default: -
(Optional) Override the directory via
goldenFileDirinmomentic.config.yaml:momentic.config.yaml
Update snapshots
Colocate snapshots with tests
Point thescreenshot.data field at a path relative to the Momentic root: