-
Notifications
You must be signed in to change notification settings - Fork 0
/
backstop.js
49 lines (46 loc) · 1.12 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
var fs = require('fs');
var allScenarios = [];
function loadScenarios (dirname, onError) {
var files = fs.readdirSync(dirname);
files.forEach (function (file) {
content = fs.readFileSync(dirname + file, 'utf-8');
allScenarios.push(JSON.parse(content));
})
}
loadScenarios ('scenarios/',
function (err) {
throw err;
}
)
module.exports = {
"viewports": [
{
"name": "phone",
"width": 320,
"height": 480
},
{
"name": "tablet_v",
"width": 568,
"height": 1024
},
{
"name": "tablet_h",
"width": 1024,
"height": 768
}
],
"scenarios": allScenarios,
"paths": {
"bitmaps_reference": "backstop_data/bitmaps_reference",
"bitmaps_test": "backstop_data/bitmaps_test",
"engine_scripts": "backstop_data/engine_scripts/puppet",
"html_report": "backstop_data/html_report",
"ci_report": "backstop_data/ci_report"
},
"engine": "puppeteer",
"report": [
"browser"
],
"debug": false
}