import { chromium } from 'playwright'; const b = await chromium.launch(); const p = await b.newPage({ viewport: { width: 1440, height: 900 } }); await p.goto('http://localhost:3210/', { waitUntil: 'domcontentloaded' }); await p.waitForTimeout(3000); for (const id of ['hero-section','home-ledger','results-slot-placeholder','home-insights','home-industries','home-capabilities','home-cta']) { const el = p.locator(`[data-testid="${id}"]`).first(); if (!(await el.count())) { console.log(id, 'MISSING'); continue; } const y = await el.evaluate(e => e.getBoundingClientRect().top + window.scrollY); console.log(id.padEnd(24), Math.round(y)); } await b.close();