You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/player-bug-regressions.test.js
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -343,7 +343,7 @@ test('high-traffic UI narration, screen announcements, and inventory stat labels
343
343
344
344
test('service worker updates quickly and keeps navigations network-first',function(){
345
345
constswJs=read('app/sw.js');
346
-
assert.ok(/viz-magic-v46/.test(swJs),'service worker cache version should be bumped');
346
+
assert.ok(/viz-magic-v47/.test(swJs),'service worker cache version should be bumped');
347
347
assert.ok(/self\.skipWaiting\(\)/.test(swJs),'service worker should activate new cache without waiting for all tabs to close');
348
348
assert.ok(/self\.clients\.claim\(\)/.test(swJs),'service worker should claim clients after activation');
349
349
assert.ok(/event\.request\.mode==='navigate'[\s\S]*fetch\(event\.request\)/.test(swJs),'navigation requests should prefer network to avoid stale cached index');
assert.ok(/SoundManager\.setVolume\(sfxVolume\/100\)/.test(read('app/js/ui/screens/settings.js')),'settings should apply stored SFX volume on render');
393
393
assert.ok(/localStorage\.setItem\(STORAGE_PREFIX\+'sfx_volume'/.test(read('app/js/ui/sound.js')),'sound manager should persist SFX volume');
394
394
assert.ok(/varvolume=_getStoredNumber\('sfx_volume',0\.5\)/.test(read('app/js/ui/sound.js')),'sound manager should restore persisted SFX volume');
395
-
assert.ok(/viz-magic-v46/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
395
+
assert.ok(/viz-magic-v47/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
396
396
});
397
397
398
398
@@ -456,7 +456,7 @@ test('magical weather is labelled and affects hunts', function () {
456
456
assert.ok(/festival_today_prefix/.test(homeJs+ruJs+enJs),'forecast holidays should have localized copy');
457
457
assert.ok(/i18n\/ru.js\?v=20260712k/.test(indexHtml),'Russian weather copy must be cache-busted');
458
458
assert.ok(/i18n\/en.js\?v=20260712k/.test(indexHtml),'English weather copy must be cache-busted');
459
-
assert.ok(/home.js\?v=20260712h/.test(indexHtml),'home forecast layout must be cache-busted');
459
+
assert.ok(/home.js\?v=20260713a/.test(indexHtml),'home forecast layout must be cache-busted');
460
460
assert.ok(/quests.js\?v=20260712a/.test(indexHtml),'quest-limit UX must be cache-busted');
461
461
assert.ok(/nav.js\?v=20260712b/.test(indexHtml),'bottom tray nav must be cache-busted');
462
462
assert.ok(/leaderboard.js\?v=20260712c/.test(indexHtml),'leaderboard narrator fix must be cache-busted');
@@ -477,9 +477,9 @@ test('music volume, narrator speech, and PWA icons are durable', function () {
477
477
assert.ok(/_setStoredNumber\('music_volume',this\.value\/100\)/.test(settingsJs),'music slider should persist changes');
478
478
assert.ok(/SpeechSynthesisUtterance/.test(narratorJs),'battle narrator should speak audibly through Web Speech when available');
479
479
assert.ok(/textContent=''[\s\S]*textContent=message/.test(narratorJs),'battle narrator should force live-region text replacement');
480
-
assert.ok(/manifest\.json\?v=20260712c/.test(indexHtml),'manifest should be cache-busted for updated icon');
480
+
assert.ok(/manifest\.json\?v=20260713a/.test(indexHtml),'manifest should be cache-busted for updated icon');
481
481
assert.ok(/favicon\.ico\?v=20260712c/.test(indexHtml),'favicon should be explicit for browser shortcut fallback');
482
-
assert.ok(/viz-magic-192\.png\?v=20260712c/.test(indexHtml),'launcher icon link should be cache-busted');
482
+
assert.ok(/viz-magic-192\.png\?v=20260713a/.test(indexHtml),'launcher icon link should be cache-busted');
483
483
assert.ok(/assets\/icons\/viz-magic-512\.png/.test(swJs),'service worker should cache PWA launcher icons');
484
484
assert.ok(/viz-magic-512\.png/.test(read('app/manifest.json')),'manifest should reference new icon URLs to bypass OS icon cache');
485
485
});
@@ -516,7 +516,14 @@ test('reported mobile UX issues have explicit fixes', function () {
516
516
assert.ok(/MAX_ACTIVE_QUESTS/.test(questScreenJs),'quest screen should use the five-quest limit');
517
517
assert.ok(!/BattleNarrator\.announce/.test(leaderboardScreenJs),'leaderboard should not wake Battle Narrator speech synthesis');
518
518
assert.ok(!/id:'help'/.test(navJs),'Help should be removed from bottom tray');
519
-
assert.ok(/label:'❤HP'/.test(homeJs)&&/label:'⭐XP'/.test(homeJs),'home HP and XP should have their own icons');
519
+
assert.ok(/label:'❤️HP'/.test(homeJs)&&/label:'⭐XP'/.test(homeJs),'home HP and XP should have their own icons');
520
+
});
521
+
522
+
523
+
test('PWA icon and HP heart use expressive color accents',function(){
524
+
assert.ok(/viz-magic-192\.png\?v=20260713a/.test(indexHtml),'PWA icon link should be cache-busted after plus placement/color update');
525
+
assert.ok(/viz-magic-v47/.test(read('app/manifest.json')),'manifest start URL should change so launchers can refresh icons');
526
+
assert.ok(/label:'❤️HP'/.test(homeJs),'HP label should use a red heart emoji variant');
0 commit comments