-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
48 lines (39 loc) · 1.51 KB
/
config.yaml
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
- url: ${BASE_URL}/from-1-90-to-2-15-a-day-the-updated-international-poverty-line
output: screenshots/from-1-90-to-2-15-a-day-the-updated-international-poverty-line.png
javascript: &default_javascript |
function () {
return new Promise(async (resolve, reject) => {
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
setTimeout(() => {
reject(`${window.location.href} took more than 60 seconds to scroll to the end of the page and fully load.`)
}, 60 * 1000)
while (Math.round(window.scrollY + window.innerHeight) < document.body.scrollHeight) {
window.scrollBy(0, window.innerHeight / 4);
await sleep(250);
}
while (!window._OWID_HAVE_ALL_GRAPHERS_LOADED) {
await sleep(500);
}
resolve()
});
}
- url: ${BASE_URL}/energy
output: screenshots/energy.png
javascript: *default_javascript
- url: ${BASE_URL}/life-expectancy
output: screenshots/life-expectancy-page.png
javascript: *default_javascript
- url: ${BASE_URL}/grapher/tomato-production
output: screenshots/tomato-production-datapage.png
javascript: *default_javascript
- url: ${BASE_URL}/births-and-deaths
output: screenshots/births-and-deaths.png
javascript: *default_javascript
- url: ${BASE_URL}/explorers/migration
output: screenshots/migration-explorer.png
javascript: *default_javascript
- url: ${BASE_URL}/
output: screenshots/homepage.png
javascript: *default_javascript