-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbackstop.config.js
44 lines (44 loc) · 1.3 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
module.exports = {
id: 'ds-vr-test',
viewports: [
{
name: 'desktop',
width: 1920,
height: 1080,
},
{
name: 'tablet',
width: 768,
height: 1024,
},
{
name: 'mobile',
width: 375,
height: 667,
},
],
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',
},
engine: 'puppeteer',
engineOptions: {
args: [
'--disable-gpu',
'--no-sandbox',
'--disable-setuid-sandbox',
'--shm-size=512mb',
'--disable-dev-shm-usage',
'--cap-add=SYS_ADMIN',
],
headless: 'old',
gotoParameters: { waitUntil: 'networkidle0' },
},
report: process.env.RUNNING_IN_CI === 'true' ? [] : ['browser'],
dockerCommandTemplate:
'docker run --rm -i --user $(id -u):$(id -g) --add-host=host.docker.internal:host-gateway --mount type=bind,source="{cwd}",target=/src backstopjs/backstopjs:{version} {backstopCommand} {args}',
};