← Back
import { chromium } from 'playwright';
const b = await chromium.launch({ executablePath:'/usr/bin/chromium-browser', args:['--no-sandbox'] });
const ctx = await b.newContext({ viewport:{ width:420, height:820 }, deviceScaleFactor:2, serviceWorkers:'block', bypassCSP:true });
const p = await ctx.newPage();
const errs=[];
p.on('console', m=>{ if(m.type()==='error') errs.push(m.text().slice(0,120)); });
await p.goto('https://poly-dev.szhub.space/', { waitUntil:'networkidle', timeout:30000 }).catch(e=>console.log('goto:',e.message));
await p.waitForTimeout(3500);
await p.screenshot({ path:'live-now.png', fullPage:false });
const txt = await p.evaluate(()=>document.body.innerText.slice(0,400));
console.log('=== VISIBLE TEXT ===\n'+txt);
console.log('=== ERRORS ===\n'+errs.slice(0,8).join('\n'));
await b.close();

📜 Git History

4814806design: Phase 2 final visual language (Stand layout + Olympus palette) + 4 screens12 days ago
Show last diff
Loading...