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
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -335,7 +335,7 @@ test('high-traffic UI narration, screen announcements, and inventory stat labels
335
335
336
336
test('service worker updates quickly and keeps navigations network-first',function(){
337
337
constswJs=read('app/sw.js');
338
-
assert.ok(/viz-magic-v34/.test(swJs),'service worker cache version should be bumped');
338
+
assert.ok(/viz-magic-v35/.test(swJs),'service worker cache version should be bumped');
339
339
assert.ok(/self\.skipWaiting\(\)/.test(swJs),'service worker should activate new cache without waiting for all tabs to close');
340
340
assert.ok(/self\.clients\.claim\(\)/.test(swJs),'service worker should claim clients after activation');
341
341
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');
383
383
assert.ok(/localStorage\.setItem\(STORAGE_PREFIX\+'sfx_volume'/.test(read('app/js/ui/sound.js')),'sound manager should persist SFX volume');
384
384
assert.ok(/varvolume=_getStoredNumber\('sfx_volume',0\.5\)/.test(read('app/js/ui/sound.js')),'sound manager should restore persisted SFX volume');
385
-
assert.ok(/viz-magic-v34/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
385
+
assert.ok(/viz-magic-v35/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
386
386
});
387
387
388
388
@@ -393,6 +393,7 @@ test('home dashboard uses Denis-approved visual scales and keeps real mana perce
393
393
assert.ok(/displayMax:HOME_XP_DISPLAY_MAX/.test(homeJs),'XP bar should show the visual XP scale');
394
394
assert.ok(/ProgressBar\.update\('mana-bar',currentEnergy\/100,100\)/.test(homeJs),'mana should remain real VIZ energy as 0-100 percent');
395
395
assert.ok(/displayValue/.test(read('app/js/ui/components/progress-bar.js')),'progress bar should separate real ratio from displayed scale');
396
+
assert.ok(/setAttribute\('aria-label'/.test(read('app/js/ui/components/progress-bar.js')),'progress update should refresh aria label for screen readers');
396
397
});
397
398
398
399
test('narrator and install instructions are actionable, not silent toggles or transient toasts',function(){
0 commit comments