fixture |
---|
fixtures/object.js |
Note: this page is a fully executable spec for the options it demonstrates. If you are reading this on GitHub, it will render the page nicely and hide all the technical details, so check out the raw markdown to see the actual test configuration.
Appraise runs your result pages in headless Chrome, then takes a screenshot.
The screenshot is usually taken immediately after the result page loads, but you can optionally execute some javascript code after the page load and before the screenshot. Check out executing code before the screenshot for more information.
You can control the screenshot with several parameters. See the Customising Execution for all the different ways you can set these parameters.
By default, Appraise will take a clip of the whole page rendered in the browser. You can configure a clip region to make tests simpler, more focused or avoid random changes that should not impact the outcome of your test.
- Set the
clip-x
andclip-y
parameters to start the clip at a particular offset. - Set the
clip-width
andclip-height
parameters to control the width and height of the clip.
The initial window width/height when loading pages is important to test responsive pages. You can control this using two arguments initial-width
and initial-height
.
Without any arguments, the entire result gets used as the actual outcome:
name: AppraiseQA is amazing!
name: AppraiseQA is amazing!