-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnode backstop.js
41 lines (40 loc) · 1.14 KB
/
node 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
const backstop = require("./tests/tests.js");
const config = require("./config.js");
let args = config.ARGS;
let scenarios = backstop.scenarios();
// BackstopJS configuration
module.exports =
{
"id": "project_" + args.BS_ENV + "_config",
"viewports": [
{
"name": "desktop",
"width": 1400,
"height": 950
}
],
"scenarios": scenarios,
"paths": config.SAVE_DIRECTORIES,
"report": ["browser", "CI"],
"engine": "puppeteer",
"engineOptions": {
"ignoreHTTPSErrors": true,
"slowMo": 500,
"args": [
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-gpu",
"--force-device-scale-factor=1",
"--disable-infobars=true",
"--hide-scrollbars=true"
]
},
"engineFlags": [],
"asyncCaptureLimit": 1,
"asyncCompareLimit": 20,
"resembleOutputOptions": {
"ignoreAntialiasing": true
},
"debug": true,
"debugWindow": true
};