-
Notifications
You must be signed in to change notification settings - Fork 94
/
js.config.cjs
126 lines (125 loc) · 3.49 KB
/
js.config.cjs
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
module.exports = {
"id": "supergym test-js",
"viewports": [
{
"label": "desktop",
"width": 1366,
"height": 800,
},
],
"onReadyScript": "onReady.cjs",
"onBeforeScript": "onBefore.cjs",
"resembleOutputOptions": {
"ignoreAntialiasing": true,
"errorType": "movementDifferenceIntensity",
"transparency": 0.3,
scaleToSameSize: false
},
"scenarios": [
{
"label": "price-6",
"url": "http://localhost:3000/index.html",
"referenceUrl": "./figma/index.html",
selectors: [`[data-test="price"]`],
misMatchThreshold: 0.8,
"onReadyScript": "price-6-click.cjs",
requireSameDimensions: true,
delay: 500
},
{
"label": "juri-prev",
"url": "http://localhost:3000/index.html",
"referenceUrl": "./figma/index.html",
selectors: [`[data-test="juri"]`],
misMatchThreshold: 0.5,
"onReadyScript": "juri-prev-click.cjs",
requireSameDimensions: true,
delay: 500
},
{
"label": "juri-next",
"url": "http://localhost:3000/index.html",
"referenceUrl": "./figma/index.html",
selectors: [`[data-test="juri"]`],
misMatchThreshold: 0.5,
"onReadyScript": "juri-next-click.cjs",
requireSameDimensions: true,
delay: 500
},
/* {
"label": "faq-tab-2",
"url": "http://localhost:3000/index.html",
"referenceUrl": "./figma/index.html",
selectors: [`[data-test="faq"]`],
misMatchThreshold: 1.0,
"onReadyScript": "faq-tab-2.cjs",
requireSameDimensions: true,
delay: 1000
},*/
{
"label": "reviews-prev",
"url": "http://localhost:3000/index.html",
"referenceUrl": "./figma/index.html",
selectors: [`[data-test="reviews"]`],
misMatchThreshold: 0.5,
"onReadyScript": "reviews-prev-click.cjs",
requireSameDimensions: true,
delay: 500
},
{
"label": "reviews-next",
"url": "http://localhost:3000/index.html",
"referenceUrl": "./figma/index.html",
selectors: [`[data-test="reviews"]`],
misMatchThreshold: 0.5,
"onReadyScript": "reviews-next-click.cjs",
requireSameDimensions: true,
delay: 500
},
{
"label": "empty-form",
"url": "http://localhost:3000/index.html",
"referenceUrl": "./figma/index.html",
selectors: [`[data-test="form"]`],
misMatchThreshold: 0.8,
"onReadyScript": "empty-form-submit.cjs",
requireSameDimensions: true,
delay: 500
},
{
"label": "fill-form",
"url": "http://localhost:3000/index.html",
"referenceUrl": "./figma/index.html",
selectors: [`viewport`],
"viewports": [
{
"label": "desktop",
"width": 640,
"height": 480,
},
],
misMatchThreshold: 0.2,
"onReadyScript": "fill-form-submit.cjs",
requireSameDimensions: true,
delay: 500
},
],
fileNameTemplate: '{scenarioLabel}_{viewportLabel}',
"paths": {
"bitmaps_reference": "bitmaps_reference/test-pp",
"bitmaps_test": "backstop_data/bitmaps_test",
"engine_scripts": "engine_scripts",
"html_report": "backstop_data/html_report",
"json_report": "backstop_data/json_report",
},
"report": ["browser", "json"],
"engine": "puppeteer",
"engineOptions": {
"args": ["--no-sandbox"],
"gotoParameters": {"waitUntil": ["load", "networkidle0"], timeout: 10000},
},
"asyncCaptureLimit": 10,
"asyncCompareLimit": 50,
"debug": false,
"debugWindow": false
}