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
+8-4Lines changed: 8 additions & 4 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-v30/.test(swJs),'service worker cache version should be bumped');
338
+
assert.ok(/viz-magic-v31/.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(/nav_bazaar/.test(homeJs)&&/nav_crafting/.test(homeJs),'home primary labels should reuse bottom-nav translation keys');
376
376
assert.ok(/actionType==='chronicle_post'[\s\S]*_normalizeDedupeText/.test(chronicleJs),'chronicle post dedupe should ignore temporary block numbers');
377
377
assert.ok(/insertBefore\(container,appMain\)/.test(toastJs),'toast strip should be inserted before app-main so it does not cover headings');
378
-
assert.ok(/#connection-status[\s\S]*position:\s*sticky/.test(mainCss),'connection status should stay in normal flow instead of covering headings');
379
-
assert.ok(/\.quest-tabs[\s\S]*grid-template-columns:\s*repeat\(2,minmax\(0,1fr\)\)/.test(mainCss),'quest tabs should render as a two-column mobile grid');
378
+
assert.ok(/#connection-status[\s\S]*position:\s*static/.test(mainCss),'connection status should stay in normal flow instead of covering headings');
379
+
assert.ok(/\.quest-tabs[\s\S]*grid-template-columns:\s*1fr/.test(mainCss),'quest tabs should render as one full-width column on mobile');
380
380
assert.ok(/role',type==='error'\?'alert':'status'/.test(toastJs),'only errors should be assertive toast alerts');
381
-
assert.ok(/viz-magic-v30/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
381
+
assert.ok(/function_getStoredNumber/.test(read('app/js/ui/screens/settings.js')),'settings should read stored sound slider values');
382
+
assert.ok(/SoundManager\.setVolume\(sfxVolume\/100\)/.test(read('app/js/ui/screens/settings.js')),'settings should apply stored SFX volume on render');
383
+
assert.ok(/localStorage\.setItem\(STORAGE_PREFIX\+'sfx_volume'/.test(read('app/js/ui/sound.js')),'sound manager should persist SFX volume');
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-v31/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
0 commit comments