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
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -337,7 +337,7 @@ test('high-traffic UI narration, screen announcements, and inventory stat labels
337
337
338
338
test('service worker updates quickly and keeps navigations network-first',function(){
339
339
constswJs=read('app/sw.js');
340
-
assert.ok(/viz-magic-v37/.test(swJs),'service worker cache version should be bumped');
340
+
assert.ok(/viz-magic-v38/.test(swJs),'service worker cache version should be bumped');
341
341
assert.ok(/self\.skipWaiting\(\)/.test(swJs),'service worker should activate new cache without waiting for all tabs to close');
342
342
assert.ok(/self\.clients\.claim\(\)/.test(swJs),'service worker should claim clients after activation');
343
343
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');
385
385
assert.ok(/localStorage\.setItem\(STORAGE_PREFIX\+'sfx_volume'/.test(read('app/js/ui/sound.js')),'sound manager should persist SFX volume');
386
386
assert.ok(/varvolume=_getStoredNumber\('sfx_volume',0\.5\)/.test(read('app/js/ui/sound.js')),'sound manager should restore persisted SFX volume');
387
-
assert.ok(/viz-magic-v37/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
387
+
assert.ok(/viz-magic-v38/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
388
388
});
389
389
390
390
@@ -434,8 +434,15 @@ test('magical weather is labelled and affects hunts', function () {
434
434
assert.ok(/functiongetCurrentWeather/.test(worldEventsJs),'world events should expose deterministic magical weather');
435
435
assert.ok(/weather_frog_rain/.test(worldEventsJs+ruJs+enJs),'magical forecast copy should exist');
436
436
assert.ok((worldEventsJs.match(/summaryKey:'weather_/g)||[]).length>=30,'magical forecast should have at least 30 rotating templates');
437
-
assert.ok(/i18n\/ru.js\?v=20260712d/.test(indexHtml),'Russian weather copy must be cache-busted');
438
-
assert.ok(/i18n\/en.js\?v=20260712d/.test(indexHtml),'English weather copy must be cache-busted');
437
+
assert.ok(/varSKY_SIGNS/.test(worldEventsJs),'forecast should combine omens with sky signs');
438
+
assert.ok(/functiongetForecastVariantCount/.test(worldEventsJs),'forecast should expose total variant count');
439
+
assert.ok(((worldEventsJs.match(/summaryKey:'sky_/g)||[]).length*(worldEventsJs.match(/summaryKey:'weather_/g)||[]).length)>=365,'forecast pool should cover a year of daily surprise');
440
+
assert.ok(/forecast-card-effect/.test(homeJs+mainCss),'forecast effect column needs its own thematic icon/card');
441
+
assert.ok(/i18n\/ru.js\?v=20260712e/.test(indexHtml),'Russian weather copy must be cache-busted');
442
+
assert.ok(/i18n\/en.js\?v=20260712e/.test(indexHtml),'English weather copy must be cache-busted');
443
+
assert.ok(/home.js\?v=20260712e/.test(indexHtml),'home forecast layout must be cache-busted');
444
+
assert.ok(/world-events.js\?v=20260712e/.test(indexHtml),'world events forecast pool must be cache-busted');
445
+
assert.ok(/main.css\?v=20260712e/.test(indexHtml),'forecast grid CSS must be cache-busted');
439
446
assert.ok(/season_effect_prefix/.test(homeJs+ruJs+enJs),'home forecast should explain gameplay effect');
440
447
assert.ok(/seasonBonuses\[spell\.school\]/.test(combatJs),'season school bonus should affect spell attack');
441
448
assert.ok(/creatureAttackMod/.test(combatJs),'weather should affect creature danger in hunt combat');
0 commit comments