const { chromium } = require('@playwright/test'); (async () => { const browser = await chromium.launch(); const page = await browser.newPage(); page.on('pageerror', e => console.log('PAGEERROR:', e.message)); page.on('console', m => { if (m.type()==='error') console.log('CONSOLE:', m.text().substring(0,200)); }); await page.goto('http://localhost/geograsim/App/heli-game'); await page.waitForTimeout(3000); const info = await page.evaluate(() => ({ onb: typeof window.startHeliOnboarding, tutorial: typeof window.GGS_TUTORIAL, keys: window.GGS_TUTORIAL ? Object.keys(window.GGS_TUTORIAL) : null, })); console.log('heli:', JSON.stringify(info)); await browser.close(); })();