forked from pantheon-systems/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wraith.yaml
58 lines (48 loc) · 2.03 KB
/
wraith.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Add as many domains as necessary. Key will act as a label
domains:
live: "https://pantheon.io/docs"
local: "http://docs.local:8000/docs"
# (optional) JavaScript file to execute before taking screenshot of every path.
# Can be used to reload current page with headers specified, or to dynamically
# AJAX in content, or all manner of other uses!
#before_capture: 'javascript/global.js'
# Type page URL paths below, here are a couple of examples.
# They should exist for all of the domains you've specified above.
paths:
home: /
article-index: /articles
single-article: /articles/going-live
subdir-index: /articles/local
guide-index: /guides
single-guide: /guides/visual-diff-with-wraith
changelog-index: /changelog
single-changelog: /changelog/2015-10-October
# amount of fuzz ImageMagick will use when comparing images. A higher fuzz makes the comparison less strict.
fuzz: '20%'
# the maximum acceptable level of difference (in %) between two images.
# Wraith considers it a failure if an image diff goes above this threshold.
threshold: 5
# screen widths (and optional height) to resize the browser to before taking the screenshot
screen_widths:
- 320
- 600x768
- 768
- 1024
- 1280
# the engine to run Wraith with. Examples: 'phantomjs', 'casperjs', 'slimerjs'
browser: "casperjs"
# the directory that your base screenshots will be stored in
history_dir: 'shots_base'
# the directory that your latest screenshots will be stored in
directory: 'shots'
gallery:
template: 'slideshow_template' # 'basic_template' (default)
thumb_width: 200
thumb_height: 200
# choose how results are displayed in the gallery (default is `alphanumeric` if omitted)
# Different screen widths are always grouped together.
# Options:
# alphanumeric - all paths (with or without a difference) are shown, sorted by path
# diffs_first - all paths (with or without a difference) are shown, sorted by difference size (largest first)
# diffs_only - only paths with a difference are shown, sorted by difference size (largest first)
mode: diffs_first