import { chromium } from 'playwright-core'; import { PAGE, HAND } from './paths.mjs'; const b = await chromium.launch({ executablePath: process.env.CH }); for (const [w, h] of [[1920,1080],[1440,900],[1366,768],[1280,720],[1024,768]]) { const p = await b.newPage({ viewport: { width: w, height: h } }); await p.goto(PAGE('web/index.html'), { waitUntil: 'load' }); await p.waitForTimeout(1300); const r = await p.evaluate(() => { const e = document.querySelector('#card .body'); return e.scrollHeight - e.clientHeight; }); console.log(`${w}x${h}: route panel overflow ${r}px`); await p.close(); } await b.close();