-
Notifications
You must be signed in to change notification settings - Fork 0
/
.percy.yml
27 lines (27 loc) · 989 Bytes
/
.percy.yml
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
version: 2
snapshot:
widths:
- 375 # minimum iPhone resolution
- 810 # iPad
- 1280 # desktop
minHeight: 1024
discovery:
network-idle-timeout: 700
static:
include:
- "/index.html"
- "/{about,contact,faq,glossary}/index.html"
- "/{explore,focus}/**/index.html"
- "/campaign/ABoVE/index.html"
- "/instrument/CPL/index.html"
- "/platform/Twin%20Otter/index.html"
overrides:
- files:
- "/index.html"
- "/{about,contact,faq,glossary}/index.html"
- "/{explore,focus}/**/index.html"
- "/campaign/ABoVE/index.html"
- "/instrument/CPL/index.html"
- "/platform/Twin%20Otter/index.html"
execute:
afterNavigation: "const delay=1000; const steps=10; let sleep = (ms, v) => new Promise(r => setTimeout(r, ms, v)); for (let i=1;i<=steps;i++){ window.scrollTo(0, document.body.scrollHeight*(i/steps)); await sleep(delay); }; window.scrollTo(0, -document.body.scrollHeight); await sleep(1000);"