fix(i18n): add 'home' body class to English homepage so section__title margin applies
This commit is contained in:
1 parent
9d78567386
commit
939ce8fcc9
88 files changed
+1830
-2
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import puppeteer from 'puppeteer';
|
||||
const b = await puppeteer.launch({ args:['--no-sandbox','--disable-setuid-sandbox','--use-gl=angle','--enable-unsafe-swiftshader','--ignore-gpu-blocklist'] });
|
||||
const p = await b.newPage();
|
||||
const errs=[];
|
||||
p.on('pageerror', e=>errs.push('PE '+e.message));
|
||||
p.on('console', m=>{ if(m.type()==='error') errs.push('CE '+m.text()); });
|
||||
await p.setViewport({width:1100,height:1300});
|
||||
await p.goto('http://10.200.201.3:4175/_lab/neu-card.html',{waitUntil:'load',timeout:60000});
|
||||
await new Promise(r=>setTimeout(r,1200));
|
||||
const r = await p.evaluate(()=>{
|
||||
const m=document.querySelector('[data-shader-demo] .card-shader')?.paperShaderMount;
|
||||
return { hasMount: !!m, speed: m?.currentSpeed, isVp: m?.isInViewport };
|
||||
});
|
||||
console.log('MOUNT', JSON.stringify(r));
|
||||
console.log('ERRS', errs.slice(0,5));
|
||||
await b.close();
|
||||
Reference in new issue
Block a user