Files
geograsim/.dontDeploy/playwright/qi-farmer-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

22 lines
937 B
JavaScript

const { chromium } = require('@playwright/test');
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
const errors = [];
page.on('pageerror', e => errors.push('PE:'+e.message.substring(0,100)));
await page.goto('http://localhost/geograsim/App/sims/farmer/game.html');
await page.waitForTimeout(1500);
const info = await page.evaluate(() => ({
lib: typeof window.GgsQuickIntro === 'object',
conv: typeof window.GGS_TUTORIAL === 'object',
simId: window.GGS_TUTORIAL && window.GGS_TUTORIAL.simId,
autoOpen: !!document.querySelector('.ggs-qi-back'),
btnInfo: !!document.getElementById('btn-info'),
btnGlossar: !!document.getElementById('glossar-btn'),
openInfoFn: typeof openInfoModal,
}));
console.log('farmer:', JSON.stringify(info, null, 2));
if (errors.length) console.log('errors:', errors);
await browser.close();
})();