-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbackstop.json
157 lines (157 loc) · 5.17 KB
/
backstop.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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"id": "Visual-regression-test",
"viewports": [
{
"label": "phone",
"width": 375,
"height": 667
},
{
"label": "tablet",
"width": 1024,
"height": 768
}
],
"onBeforeScript": "puppet/onBefore.js",
"onReadyScript": "puppet/onReady.js",
"scenarios": [
{
"label": "Fetch error",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2FPhantomBook%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"misMatchThreshold" : 0.1
},
{
"label": "Loaded",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"misMatchThreshold" : 0.1
},
{
"label": "Navbar",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"clickSelector": ".trigger",
"postInteractionWait": 500,
"misMatchThreshold" : 0.1
},
{
"label": "TOC",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"clickSelector": ".contents",
"postInteractionWait": 500,
"misMatchThreshold" : 0.1
},
{
"label": "TOC in sepia",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"clickSelectors": ["#settings-control", ".sepia-theme", ".contents"],
"postInteractionWait": 500,
"misMatchThreshold" : 0.1
},
{
"label": "TOC in night mode",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"clickSelectors": ["#settings-control", ".night-theme", ".contents"],
"postInteractionWait": 500,
"misMatchThreshold" : 0.1
},
{
"label": "Settings",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"clickSelector": "#settings-control",
"postInteractionWait": 500,
"misMatchThreshold" : 0.1
},
{
"label": "Serif",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"clickSelectors": ["#settings-control", ".serif-font"],
"postInteractionWait": 500,
"misMatchThreshold" : 0.1
},
{
"label": "Sans Serif",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"clickSelectors": ["#settings-control", ".sans-font"],
"postInteractionWait": 500,
"misMatchThreshold" : 0.1
},
{
"label": "Decrease font-size",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"clickSelectors": ["#settings-control", ".decrease", ".decrease", "#settings-control"],
"postInteractionWait": 500,
"misMatchThreshold" : 0.1
},
{
"label": "Increase font-size",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"clickSelectors": ["#settings-control", ".increase", ".increase", "#settings-control"],
"postInteractionWait": 500,
"misMatchThreshold" : 0.1
},
{
"label": "Sepia",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"clickSelectors": ["#settings-control", ".sepia-theme"],
"postInteractionWait": 500,
"misMatchThreshold" : 0.1
},
{
"label": "Night",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"clickSelectors": ["#settings-control", ".night-theme"],
"postInteractionWait": 500,
"misMatchThreshold" : 0.1
},
{
"label": "Scroll View",
"url": "https://localhost:3333/viewer/?url=https%3A%2F%2Flocalhost%3A3333%2Fbackstop%2Fmanifest.json",
"delay": 1000,
"selectors": ["viewport"],
"clickSelectors": ["#settings-control", ".scrolling-book-view"],
"postInteractionWait": 500,
"misMatchThreshold" : 0.1
}
],
"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"
},
"report": ["browser"],
"engine": "puppeteer",
"engineOptions": {
"args": ["--no-sandbox"]
},
"asyncCaptureLimit": 5,
"asyncCompareLimit": 50,
"debug": false,
"debugWindow": false
}