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
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -348,7 +348,7 @@ test('high-traffic UI narration, screen announcements, and inventory stat labels
348
348
349
349
test('service worker updates quickly and keeps navigations network-first',function(){
350
350
constswJs=read('app/sw.js');
351
-
assert.ok(/viz-magic-v57/.test(swJs),'service worker cache version should be bumped');
351
+
assert.ok(/viz-magic-v58/.test(swJs),'service worker cache version should be bumped');
352
352
assert.ok(/self\.skipWaiting\(\)/.test(swJs),'service worker should activate new cache without waiting for all tabs to close');
353
353
assert.ok(/self\.clients\.claim\(\)/.test(swJs),'service worker should claim clients after activation');
354
354
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');
398
398
assert.ok(/localStorage\.setItem\(STORAGE_PREFIX\+'sfx_volume'/.test(read('app/js/ui/sound.js')),'sound manager should persist SFX volume');
399
399
assert.ok(/varvolume=_getStoredNumber\('sfx_volume',0\.5\)/.test(read('app/js/ui/sound.js')),'sound manager should restore persisted SFX volume');
400
-
assert.ok(/viz-magic-v57/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
400
+
assert.ok(/viz-magic-v58/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
401
401
});
402
402
403
403
@@ -527,7 +527,7 @@ test('reported mobile UX issues have explicit fixes', function () {
527
527
528
528
test('PWA icon and HP heart use expressive color accents',function(){
529
529
assert.ok(/viz-magic-192\.png\?v=20260713a/.test(indexHtml),'PWA icon link should be cache-busted after plus placement/color update');
530
-
assert.ok(/viz-magic-v57/.test(read('app/manifest.json')),'manifest start URL should change so launchers can refresh icons');
530
+
assert.ok(/viz-magic-v58/.test(read('app/manifest.json')),'manifest start URL should change so launchers can refresh icons');
531
531
assert.ok(/label:'❤️HP'/.test(homeJs),'HP label should use a red heart emoji variant');
532
532
});
533
533
@@ -676,6 +676,13 @@ test('reported ux polish issues have explicit fixes', function () {
676
676
assert.ok(/matchedVoice/.test(read('app/js/ui/components/battle-narrator.js')),'male narrator should avoid fake pitch-shift when no male browser voice exists');
677
677
});
678
678
679
+
680
+
test('chronicle draft survives rerenders while feed loads',function(){
681
+
assert.ok(/chronicle.js\?v=20260713a/.test(indexHtml),'chronicle screen should be cache-busted for draft preservation');
682
+
assert.ok(/DRAFT_KEY/.test(chronicleJs),'chronicle should keep a draft key');
683
+
assert.ok(/_getDraft\(\)/.test(chronicleJs)&&/_setDraft\(this\.value\)/.test(chronicleJs),'typed chronicle text should be restored and saved during rerenders');
0 commit comments