← 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:390, height:300 }, deviceScaleFactor:2, serviceWorkers:'block' });
await ctx.addInitScript(()=>{localStorage.setItem('sz_theme','dark');});
const p = await ctx.newPage();
await p.goto('https://poly-dev.szhub.space/', { waitUntil:'domcontentloaded', timeout:35000 });
await p.waitForTimeout(5000);
const f = await p.evaluate(()=>{const e=document.querySelector('.pk-wordmark');return e?getComputedStyle(e).fontFamily:'none';});
console.log('wordmark font:', f);
await b.close();