Title: a hidden label for the language picker; the How the Internet Works card is checked in How to play

This commit is contained in:
Frederic Jung 2026-10-29 18:01:27 +01:00
parent 2604a9c74c
commit be63e3df67
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View file

@ -155,8 +155,9 @@ for (const lang of ['en', 'it', 'pt', 'fr', 'es', 'de']) {
}
if (lang === 'de') {
assert.match(ev("document.getElementById('modalCard').textContent"), /Spielanleitung/);
// the link card to the real "How the Internet Works" site used to be hard-coded English
assert.match(ev("document.getElementById('modalCard').textContent"), /Wie funktioniert das Internet\?/);
// the link card to the real "How the Internet Works" site used to be hard-coded English; it lives in How to play
assert.match(ev("(()=>{showHelp&&showHelp();return document.getElementById('modalCard').textContent})()"), /Wie funktioniert das Internet\?/);
ev("showTitle()");
assert.equal(ev("document.querySelector('#hud [data-act=bank] .lbl').textContent"), 'Kasse · Bank');
// networking jargon stays English in German (Peering, Dark Fiber); plain "fiber" is Glasfaser
assert.equal(ev("tr('common.peering')"), 'Peering');