-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.example.js
34 lines (27 loc) · 1.05 KB
/
config.example.js
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
// Copy me to the root as config.js for setting your testing options
module.exports = {
// The viewport to use when creating images from the URLs
viewport: {
width: 1280,
height: 800,
},
// Matching threshold, ranges from 0 to 1. Smaller values make the comparison more sensitive. 0.1 by default.
// See pixelmatch for more information: https://github.com/mapbox/pixelmatch#api
diffThreshold: 0.1,
// The number of pixels in the diff that, once reached, will be flagged in the audit during the testing
nonacceptableDiff: 10,
// The maximum amount of screenshot requests to run concurrently. Careful.
maxConcurrency: 2,
// The URLs to test for visual differences
urls: [
{
// The first URL to test
a: "https://time.is/Los_Angeles",
// The URL to compare the first test to
b: "https://time.is/New_York",
// Need to pass in some custom CSS to your test so you can hide or change elements?
// Provide as much CSS you need and it will be applied when navigating to the URLs
css: ``,
},
],
};