import { chromium } from "playwright-core"; const browser = await chromium.launch({ executablePath: "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe", headless: true }); const page = await browser.newPage({ viewport: { width: 1600, height: 1200 }, deviceScaleFactor: 1 }); await page.goto("http://127.0.0.1:3000/agents", { waitUntil: "networkidle" }); const result = await page.evaluate(() => { const list = document.querySelector(".agents-worklist"); if (!(list instanceof HTMLElement)) { throw new Error("agents-worklist not found"); } const style = window.getComputedStyle(list); const template = style.gridTemplateColumns; const count = template.split(" ").filter(Boolean).length; return { gridTemplateColumns: template, columnCount: count }; }); await page.screenshot({ path: "artifacts/agents-grid-check.png", fullPage: true }); await browser.close(); console.log(JSON.stringify(result, null, 2));