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
+9-6Lines changed: 9 additions & 6 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-v42/.test(swJs),'service worker cache version should be bumped');
345
+
assert.ok(/viz-magic-v43/.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-v42/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
394
+
assert.ok(/viz-magic-v43/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
395
395
});
396
396
397
397
@@ -449,11 +449,11 @@ 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=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');
452
+
assert.ok(/i18n\/ru.js\?v=20260712j/.test(indexHtml),'Russian weather copy must be cache-busted');
453
+
assert.ok(/i18n\/en.js\?v=20260712j/.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
-
assert.ok(/main.css\?v=20260712h/.test(indexHtml),'forecast grid CSS must be cache-busted');
456
+
assert.ok(/main.css\?v=20260712i/.test(indexHtml),'forecast grid CSS must be cache-busted');
457
457
assert.ok(/season_effect_prefix/.test(homeJs+ruJs+enJs),'home forecast should explain gameplay effect');
458
458
assert.ok(/seasonBonuses\[spell\.school\]/.test(combatJs),'season school bonus should affect spell attack');
459
459
assert.ok(/creatureAttackMod/.test(combatJs),'weather should affect creature danger in hunt combat');
@@ -481,6 +481,9 @@ test('temple tab uses balanced on-chain offerings without direct pay-to-win stat
481
481
assert.ok(/functiontempleOffering/.test(broadcastJs),'temple offering should have a broadcast wrapper');
482
482
assert.ok(/award\(targetAccount,energy/.test(broadcastJs),'temple offering should send a VIZ award to the deity account');
483
483
assert.ok(/prayerText/.test(broadcastJs+templeJs),'temple offerings should include selected prayer text in the public memo/action');
484
+
assert.ok(/temple_social_publish/.test(templeJs+ruJs+enJs),'temple should offer an optional Chronicle prayer post for native promotion');
485
+
assert.ok(/VizBroadcast\.chroniclePost/.test(templeJs),'temple social prayer should use Chronicle posts');
486
+
assert.ok(/#viz_magic#temple/.test(ruJs+enJs),'temple social posts should include discoverable tags');
484
487
assert.ok(/VizAccount\.calculateCurrentEnergy/.test(templeJs),'temple should check current mana before broadcasting an award');
485
488
assert.ok(/caseAT\.TEMPLE_OFFERING/.test(stateEngineJs),'state engine should replay temple offerings');
486
489
assert.ok(/function_handleTempleOffering/.test(stateEngineJs),'temple offering handler should exist');
@@ -494,7 +497,7 @@ test('temple tab uses balanced on-chain offerings without direct pay-to-win stat
494
497
assert.ok(/OFFERING_ENERGY=50/.test(templeJs),'offering cost should be small and explicit');
495
498
assert.ok(/fire_goddess[\s\S]*target:\s*'null'/.test(templeJs),'fire goddess should burn through null');
496
499
assert.ok(/labor_god[\s\S]*target:\s*'committee'/.test(templeJs),'labor god should support committee');
497
-
assert.ok(/screen-temple/.test(indexHtml)&&/temple\.js\?v=20260712b/.test(indexHtml),'temple screen should be loaded and cache-busted');
500
+
assert.ok(/screen-temple/.test(indexHtml)&&/temple\.js\?v=20260712c/.test(indexHtml),'temple screen should be loaded and cache-busted');
498
501
assert.ok(/id:'temple'/.test(navJs+homeJs)&&/nav_temple/.test(ruJs+enJs),'temple should be reachable from navigation/home');
0 commit comments