-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackstop_config.js
67 lines (64 loc) · 1.32 KB
/
backstop_config.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
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
/**
* @file
* Backstop configuration.
*/
/**
* Arguments passed into backstop
* @type {{_: []}}
*/
const args = require('minimist')(process.argv.slice(2));
/**
*
*/
const {scenarios} = require(`./backstop_scenarios`);
//console.log("testURL given to backstop is " + args.testURL);
//console.log("refURL given to backstop is " + args.refURL);
module.exports = {
id: 'visual_test',
viewports: [
{
label: 'phone',
width: 320,
height: 480,
},
{
label: 'tablet-portrait',
width: 700,
height: 1024,
},
{
label: 'tablet-landscape',
width: 1024,
height: 768,
},
{
label: 'desktop',
width: 1280,
height: 1024,
},
{
label: 'desktop-wide',
width: 2000,
height: 1024,
},
],
onBeforeScript: 'puppet/onBefore.js',
onReadyScript: 'puppet/onReady.js',
scenarios: scenarios,
paths: {
bitmaps_reference: 'backstop_data/bitmaps_reference',
bitmaps_test: 'backstop_data/bitmaps_test',
engine_scripts: 'backstop_data/engine_scripts',
html_report: 'backstop_data/html_report',
ci_report: 'backstop_data/ci_report',
},
report: ['CI'],
engine: 'puppeteer',
engineOptions: {
args: ['--no-sandbox'],
},
asyncCaptureLimit: 1,
asyncCompareLimit: 50,
debug: false,
debugWindow: false,
};