const { chromium } = require('playwright'); (async () => { const browser = await chromium.launch({ headless: true }); const page = await browser.newPage({ viewport: { width: 1280, height: 800 } }); // Capture console messages page.on('console', msg => console.log(`CONSOLE: ${msg.type()} - ${msg.text()}`)); page.on('pageerror', err => console.log(`PAGE_ERROR: ${err.message}`)); await page.goto('http://100.114.51.16:5173/app', { waitUntil: 'networkidle', timeout: 30000 }); await page.waitForTimeout(5000); await page.screenshot({ path: '/tmp/screenshot-sidebar.png', fullPage: false }); console.log('Screenshot saved'); const bodyText = await page.evaluate(() => document.body.innerText); console.log('Body text:', bodyText.substring(0, 500)); await browser.close(); })();