Captures a full-screen screenshot and compares it pixel-by-pixel against a
golden image stored on disk. On first run the step creates the golden file and
passes. On subsequent runs the step fails if the screenshot differs by more than
threshold. To refresh a golden after an intentional UI change, re-run with
--update-golden-files.
The simplified form takes the golden file path as a single string. Element
targeting is not supported on mobile; the diff always covers the full screen.
visualDiff is only supported when running mobile tests locally with the
Momentic CLI. Golden files live on the machine that runs the test.
Parameters
Shorthand
Golden file path as a single string.
Examples