Files
geograsim/.dontDeploy/playwright/kd-fundsachen-tooltips.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

20 lines
903 B
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();
// Direkt das KD_FUNDSACHEN-Array prüfen
await page.goto('http://localhost/geograsim/App/sims/kofferdetektiv/game-3d.html');
await page.waitForTimeout(3000);
const r = await page.evaluate(() => {
if (typeof KD_FUNDSACHEN === 'undefined') return { error: 'KD_FUNDSACHEN undefined' };
return {
count: KD_FUNDSACHEN.length,
first3: KD_FUNDSACHEN.slice(0, 3).map(f => ({ name: f.name, hasGlossarSpan: /ggs-g/.test(f.info), sample: f.info.substring(0, 100) })),
glossarSpanCount: KD_FUNDSACHEN.reduce((n, f) => n + (f.info.match(/ggs-g/g) || []).length, 0),
};
});
console.log(JSON.stringify(r, null, 2));
await browser.close();
})();