Files
geograsim/.dontDeploy/playwright/idle-test.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

24 lines
1.1 KiB
JavaScript

const { chromium } = require('@playwright/test');
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
const errors = [];
page.on('pageerror', err => errors.push('PAGEERROR: ' + err.message));
page.on('console', msg => { if (msg.type() === 'error') errors.push('CONSOLE: ' + msg.text().substring(0,200)); });
await page.goto('http://localhost/geograsim/App/fluss?level=1');
await page.waitForTimeout(3000);
const out = await page.evaluate(() => ({
hasGGS: typeof window.__GGS__ === 'object',
hasLive: typeof window.__GGS_LIVE__ === 'object',
activeMs: window.__GGS_LIVE__ && window.__GGS_LIVE__.activeMs,
idleMs: window.__GGS_LIVE__ && window.__GGS_LIVE__.idleMs,
maxSession: window.__GGS_LIVE__ && window.__GGS_LIVE__.MAX_SESSION_MS,
idleThresh: window.__GGS_LIVE__ && window.__GGS_LIVE__.IDLE_THRESHOLD_MS,
stateScore: (window.GGS_LIVE_STATE && window.GGS_LIVE_STATE()) || null,
}));
console.log('Local Fluss after 3s:');
console.log(JSON.stringify(out, null, 2));
if (errors.length) console.log('ERRORS:', errors);
await browser.close();
})();