-
Notifications
You must be signed in to change notification settings - Fork 1
/
backstop.js
73 lines (67 loc) · 1.34 KB
/
backstop.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
68
69
70
71
72
73
/* global require, process, module */
var arguments = require('minimist')(process.argv.slice(2));
var url = 'http://localhost:9000';
if (arguments.url) {
url = arguments.url;
}
var paths = [
'/'
];
var scenarios = [];
for (var i = 0; i < paths.length; i++) {
scenarios.push({
'label': paths[i],
'url': url + paths[i],
'delay': 500
});
}
module.exports = {
'id': 'planet4',
'viewports': [
{
'label': 'mobile',
'width': 320,
'height': 480
},
{
'label': 'small',
'width': 600,
'height': 768
},
{
'label': 'medium',
'width': 800,
'height': 1024
},
{
'label': 'large',
'width': 1024,
'height': 992
},
{
'label': 'xlarge',
'width': 1300,
'height': 1024
}
],
'scenarios':
scenarios
,
'paths': {
'bitmaps_reference': 'tests/backstop/bitmaps_reference',
'bitmaps_test': 'tests/backstop/bitmaps_test',
'casper_scripts': 'tests/backstop/casper_scripts',
'html_report': 'tests/backstop/html_report',
'ci_report': 'tests/backstop/ci_report'
},
'casperFlags': [],
'engine': 'puppeteer',
'report': ['browser'],
'engineOptions': {
'args': ['--no-sandbox']
},
'asyncCaptureLimit': 5,
'asyncCompareLimit': 50,
'debug': false,
'debugWindow': false
};