const { chromium } = require('playwright'); (async () => { const browser = await chromium.launch({ headless: true }); const page = await browser.newPage({ viewport: { width: 1280, height: 800 } }); await page.goto('http://100.114.51.16:5173/app', { waitUntil: 'networkidle', timeout: 30000 }); await page.waitForTimeout(5000); await page.waitForSelector('[data-sidebar-group]', { timeout: 10000 }).catch(() => {}); await page.screenshot({ path: '/tmp/screenshot-sidebar.png', fullPage: false }); console.log('Screenshot saved'); const groups = await page.locator('[data-sidebar-group]').all(); console.log(`Found ${groups.length} sidebar groups`); const titles = await page.locator('[data-sidebar-group] button[aria-label]').allTextContents(); console.log('Sidebar buttons:', titles.slice(0, 10)); await browser.close(); })();