-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.yml
83 lines (67 loc) · 2.2 KB
/
sample.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Two URLs to run tests against. The first is considered to be the baseline
sites:
- http://www.bbc.com
- http://www.test.bbc.com
# List of pages to test on each site
pages:
# Each page must have a path (relative to the site URLs).
# By default, the whole page will be captured.
- path: /news
# Pages can also have a list of selectors. Rather than capturing the whole
# page, an image of each selector will be captured.
- path: /news
selectors:
- .nw-c-top-stories
- .nw-c-must-see
- .nw-c-full-story
- .nw-c-most-read
# Pages can be named to make test results easier to read
- path: /news
name: News Index
# Viewport configurations to run tests with
# Each viewport can have the following properties:
# - width (required)
# - height: (default: 1000)
# - isMobile (default: false)
# - javascriptDisabled (default: false)
# - name
viewports:
- width: 640
isMobile: true
- width: 320
height: 480
isMobile: true
javascriptDisabled: true
name: Core Experience
# Which browser to run the tests with. Available browsers:
# - HeadlessChrome
browser: HeadlessChrome
# List of requests to block.
# Request URLs are partially matched against each value
blockRequests:
- static.bbc.co.uk/bbcdotcom
- bbc.co.uk/wwscripts
# List of CSS selectors to hide (display: none) before capturing a screenshot
ignoreSelectors:
- '#blq-global'
- '#orb-header'
- '#orb-footer'
- '.nw-c-breaking-news-banner'
- '#breaking-news-container'
# Where to store Whoopsie output
outDir: whoopsie/
# Input file for the generate-gallery command
inFile: whoopsie/results.json
# How different two pages should be (as a percentage) for a test to fail
failureThreshold: 10
# How many milliseconds the network should be idle for before capturing the page
networkIdleTimeout: 3000
# The maximum amount of milliseconds to wait for the network to be idle
maxNetworkIdleWait: 10000
# How much fuzz should be applied when calculating differences
# See http://www.imagemagick.org/Usage/color_basics/#fuzz for a full explanation
fuzz: 5
# Whether to scroll to the end of the page before capturing a screenshot
scroll: true
# Whether to run the capture process in headless mode
headless: true