Files
geograsim/.dontDeploy/playwright/kd-prod-check.js
T
Adminator 1e51ef7def Nachtrag: alle bisher untracked Ordner + hängende Änderungen mit-committen
- Konzept/, didaktik_geografie/, didaktik_simulation/, v2-modules/, v2-platform/
- 12 code-workspace-Files
- STATUS-*.md
- viele M/D/R-Änderungen an bereits getrackten Files
- .gitignore verstärkt: **/.humaninput/, **/secret_keys.txt

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-08 02:27:02 +02:00

27 lines
1.2 KiB
JavaScript

const { chromium } = require('@playwright/test');
(async () => {
const browser = await chromium.launch();
const ctx = await browser.newContext({ viewport: { width: 1280, height: 900 } });
const page = await ctx.newPage();
const errors = [];
page.on('pageerror', e => errors.push('PAGE: ' + e.message.substring(0,150)));
page.on('console', m => { if (m.type()==='error') errors.push('CON: ' + m.text().substring(0,150)); });
const res = await page.goto('https://geograsim.at/kofferdetektiv-3d');
console.log('Status:', res?.status());
await page.waitForTimeout(4000); // 3D-Boot dauert
const info = await page.evaluate(() => ({
ggs: typeof window.__GGS__,
simId: window.__GGS__ && window.__GGS__.simId,
mode: window.__GGS__ && window.__GGS__.mode,
liveState: typeof window.GGS_LIVE_STATE,
tutorial: typeof window.GGS_TUTORIAL,
kdBase: window.KD_BASE,
threeLoaded: typeof window.THREE,
title: document.title,
visibleBody: document.body?.children?.length || 0,
}));
console.log(JSON.stringify(info, null, 2));
if (errors.length) console.log('Errors (' + errors.length + '):', errors.slice(0,5));
await browser.close();
})();