update_reference
Set the current page appearance as the reference screenshot for visual regression testing, using an existing image or a fresh capture when no baseline exists.
Instructions
Make the current look of a page its reference screenshot: from source (an image),
else the latest qa_page capture, else a fresh capture right now (so this also creates a
first baseline for a page that has no reference yet). The old reference is backed up.
Only do this when the USER has confirmed the look is intended; set confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| source | No | ||
| confirm | No | ||
| profile | No |