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
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -342,7 +342,7 @@ test('high-traffic UI narration, screen announcements, and inventory stat labels
342
342
343
343
test('service worker updates quickly and keeps navigations network-first',function(){
344
344
constswJs=read('app/sw.js');
345
-
assert.ok(/viz-magic-v41/.test(swJs),'service worker cache version should be bumped');
345
+
assert.ok(/viz-magic-v42/.test(swJs),'service worker cache version should be bumped');
346
346
assert.ok(/self\.skipWaiting\(\)/.test(swJs),'service worker should activate new cache without waiting for all tabs to close');
347
347
assert.ok(/self\.clients\.claim\(\)/.test(swJs),'service worker should claim clients after activation');
348
348
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');
392
392
assert.ok(/localStorage\.setItem\(STORAGE_PREFIX\+'sfx_volume'/.test(read('app/js/ui/sound.js')),'sound manager should persist SFX volume');
393
393
assert.ok(/varvolume=_getStoredNumber\('sfx_volume',0\.5\)/.test(read('app/js/ui/sound.js')),'sound manager should restore persisted SFX volume');
394
-
assert.ok(/viz-magic-v41/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
394
+
assert.ok(/viz-magic-v42/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
395
395
});
396
396
397
397
@@ -449,8 +449,8 @@ test('magical weather is labelled and affects hunts', function () {
449
449
assert.ok(/forecast-card-effect/.test(homeJs+mainCss),'forecast effect column needs its own thematic icon/card');
450
450
assert.ok(/functiongetCurrentFestival/.test(worldEventsJs),'magical holidays should sometimes appear in the forecast');
451
451
assert.ok(/festival_today_prefix/.test(homeJs+ruJs+enJs),'forecast holidays should have localized copy');
452
-
assert.ok(/i18n\/ru.js\?v=20260712h/.test(indexHtml),'Russian weather copy must be cache-busted');
453
-
assert.ok(/i18n\/en.js\?v=20260712h/.test(indexHtml),'English weather copy must be cache-busted');
452
+
assert.ok(/i18n\/ru.js\?v=20260712i/.test(indexHtml),'Russian weather copy must be cache-busted');
453
+
assert.ok(/i18n\/en.js\?v=20260712i/.test(indexHtml),'English weather copy must be cache-busted');
454
454
assert.ok(/home.js\?v=20260712g/.test(indexHtml),'home forecast layout must be cache-busted');
455
455
assert.ok(/world-events.js\?v=20260712g/.test(indexHtml),'world events forecast pool must be cache-busted');
456
456
assert.ok(/main.css\?v=20260712h/.test(indexHtml),'forecast grid CSS must be cache-busted');
@@ -486,6 +486,8 @@ test('temple tab uses balanced on-chain offerings without direct pay-to-win stat
486
486
assert.ok(/function_handleTempleOffering/.test(stateEngineJs),'temple offering handler should exist');
487
487
assert.ok(/cooldown=28800/.test(stateEngineJs),'temple offerings should be cooldown-limited');
488
488
assert.ok(/functiongetTempleBlessing/.test(stateEngineJs),'temple should expose small temporary blessings');
489
+
assert.ok(/TemplerewardsaregrantedonlyfromtherealVIZawardmemo/.test(stateEngineJs),'temple replay should not mint rewards from custom proof alone');
490
+
assert.ok(/viz:\/\/vm\/temple\//.test(stateEngineJs),'temple award memos should be recognized during replay');
489
491
assert.ok(/templeBlessing/.test(combatJs),'temple blessings should be used by combat without direct item stats');
490
492
assert.ok(/flame_votive_mark/.test(itemsJs)&&/labor_votive_mark/.test(itemsJs),'temple relics should be registered item templates');
491
493
assert.ok(/baseStats:\s*\{\}/.test(itemsJs),'temple relics should not add direct combat stats');
0 commit comments