-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
backstop-example.json
59 lines (59 loc) · 1.41 KB
/
backstop-example.json
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
{
"viewports": [
{
"width" : 1920,
"height" : 1080,
"name" : "desktop"
}
],
"paths": {
"bitmaps_reference": "data/example/bitmaps_reference",
"bitmaps_test": "data/example/bitmaps_test",
"casper_scripts": "scripts/example",
"html_report": "data/example/reports/html",
"ci_report": "data/example/reports/junit"
},
"casperFlags": [
"--ignore-ssl-errors=true",
"--ssl-protocol=any"
],
"engine": "phantomjs",
"report" : ["CLI", "CI", "browser"],
"debug": false,
"scenarios": [
{
"label": "Passing Test",
"referenceUrl" : "http://getbootstrap.com",
"url": "http://getbootstrap.com",
"hideSelectors": [],
"removeSelectors": [
"#carbonads-container"
],
"selectors": [
"header",
"main",
"body .bs-docs-featurette:nth-of-type(1)",
"body .bs-docs-featurette:nth-of-type(2)",
"footer",
"body"
],
"readyEvent": null,
"delay": 500,
"misMatchThreshold" : 0.1,
"onBeforeScript": "onBefore.js",
"onReadyScript": "onReady.js"
},
{
"label": "Failing Test",
"referenceUrl" : "https://www.google.com/?hl=en",
"url" : "https://www.google.com/?hl=ru",
"selectors" : [
"document"
],
"delay" : 500,
"misMatchThreshold" : 0.1,
"onBeforeScript" : "",
"onReadyScript" : ""
}
]
}