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
+20-6Lines changed: 20 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -345,7 +345,7 @@ test('high-traffic UI narration, screen announcements, and inventory stat labels
345
345
346
346
test('service worker updates quickly and keeps navigations network-first',function(){
347
347
constswJs=read('app/sw.js');
348
-
assert.ok(/viz-magic-v50/.test(swJs),'service worker cache version should be bumped');
348
+
assert.ok(/viz-magic-v51/.test(swJs),'service worker cache version should be bumped');
349
349
assert.ok(/self\.skipWaiting\(\)/.test(swJs),'service worker should activate new cache without waiting for all tabs to close');
350
350
assert.ok(/self\.clients\.claim\(\)/.test(swJs),'service worker should claim clients after activation');
351
351
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(/beforeinstallprompt/.test(appJs),'app should listen for PWA install prompt');
382
382
assert.ok(/functioninstallShortcut/.test(appJs),'app should expose an install shortcut action');
383
383
assert.ok(/home_install_shortcut/.test(homeJs+ruJs+enJs),'home screen should offer install-shortcut guidance');
384
-
assert.ok(/varPRIMARY_HOME_SCREENS=\['home','hunt','map','chronicle','guild','marketplace','crafting','character','temple','leaderboard'\]/.test(homeJs),'home primary grid should put Chronicle in the first visible row');
384
+
assert.ok(/varPRIMARY_HOME_SCREENS=\['home','hunt','map','inventory','arena','quests','guild','marketplace','crafting','temple'\]/.test(homeJs),'home primary grid should put bag, arena and quests in the first visible sections');
385
385
assert.ok(/nav_bazaar/.test(homeJs)&&/nav_crafting/.test(homeJs),'home primary labels should reuse bottom-nav translation keys');
386
386
assert.ok(/prophecy-mini-button/.test(homeJs),'daily prophecy card should be an active navigation button');
387
387
assert.ok(/Helpers.EventBus.emit\('navigate','quests'\)/.test(homeJs),'daily prophecy should navigate to quests');
assert.ok(/SoundManager\.setVolume\(sfxVolume\/100\)/.test(read('app/js/ui/screens/settings.js')),'settings should apply stored SFX volume on render');
395
395
assert.ok(/localStorage\.setItem\(STORAGE_PREFIX\+'sfx_volume'/.test(read('app/js/ui/sound.js')),'sound manager should persist SFX volume');
396
396
assert.ok(/varvolume=_getStoredNumber\('sfx_volume',0\.5\)/.test(read('app/js/ui/sound.js')),'sound manager should restore persisted SFX volume');
397
-
assert.ok(/viz-magic-v50/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
397
+
assert.ok(/viz-magic-v51/.test(read('app/sw.js')),'service worker cache should be bumped for UI changes');
398
398
});
399
399
400
400
@@ -458,7 +458,7 @@ test('magical weather is labelled and affects hunts', function () {
458
458
assert.ok(/festival_today_prefix/.test(homeJs+ruJs+enJs),'forecast holidays should have localized copy');
459
459
assert.ok(/i18n\/ru.js\?v=20260713c/.test(indexHtml),'Russian weather copy must be cache-busted');
460
460
assert.ok(/i18n\/en.js\?v=20260713c/.test(indexHtml),'English weather copy must be cache-busted');
461
-
assert.ok(/home.js\?v=20260713a/.test(indexHtml),'home forecast layout must be cache-busted');
461
+
assert.ok(/home.js\?v=20260713b/.test(indexHtml),'home forecast layout must be cache-busted');
462
462
assert.ok(/quests.js\?v=20260712a/.test(indexHtml),'quest-limit UX must be cache-busted');
463
463
assert.ok(/nav.js\?v=20260712b/.test(indexHtml),'bottom tray nav must be cache-busted');
464
464
assert.ok(/leaderboard.js\?v=20260712c/.test(indexHtml),'leaderboard narrator fix must be cache-busted');
@@ -524,13 +524,13 @@ test('reported mobile UX issues have explicit fixes', function () {
524
524
525
525
test('PWA icon and HP heart use expressive color accents',function(){
526
526
assert.ok(/viz-magic-192\.png\?v=20260713a/.test(indexHtml),'PWA icon link should be cache-busted after plus placement/color update');
527
-
assert.ok(/viz-magic-v50/.test(read('app/manifest.json')),'manifest start URL should change so launchers can refresh icons');
527
+
assert.ok(/viz-magic-v51/.test(read('app/manifest.json')),'manifest start URL should change so launchers can refresh icons');
528
528
assert.ok(/label:'❤️HP'/.test(homeJs),'HP label should use a red heart emoji variant');
529
529
});
530
530
531
531
532
532
test('character screen uses current home-scale vitals and growth explainers',function(){
533
-
assert.ok(/character.js\?v=20260713a/.test(indexHtml),'character screen should be cache-busted');
533
+
assert.ok(/character.js\?v=20260713b/.test(indexHtml),'character screen should be cache-busted');
534
534
assert.ok(/CHARACTER_HP_DISPLAY_MAX=5000/.test(characterScreenJs),'character HP should use the same 5000 display scale as Home');
535
535
assert.ok(/label:'❤️HP'/.test(characterScreenJs),'character HP should have the red heart icon');
536
536
assert.ok(/label:'⭐XP'/.test(characterScreenJs),'character XP should have an icon and visible bar');
@@ -566,6 +566,20 @@ test('narrator voice preferences support gender and timbre', function () {
566
566
assert.ok(/narrator_voice_hint/.test(settingsJs+ruJs+enJs),'settings should explain browser voice limitations');
assert.ok(/home.js\?v=20260713b/.test(indexHtml),'home screen should be cache-busted for action order');
572
+
assert.ok(/PRIMARY_HOME_SCREENS=\['home','hunt','map','inventory','arena','quests','guild','marketplace','crafting','temple'\]/.test(homeJs),'primary row should include bag, arena and quests');
573
+
assert.ok(/SECONDARY_HOME_SCREENS=\['chronicle','character','leaderboard','world-boss','settings','help'\]/.test(homeJs),'secondary sections should hold chronicle, character and leaderboard');
574
+
});
575
+
576
+
577
+
test('character vital explainers are placed immediately after their bars',function(){
578
+
assert.ok(/character.js\?v=20260713b/.test(indexHtml),'character screen should be cache-busted for vital layout');
579
+
assert.ok(/char-hp-bar[\s\S]*char_hp_explainer[\s\S]*char-xp-bar[\s\S]*char_xp_explainer[\s\S]*char-mana-bar[\s\S]*char_mana_explainer/.test(characterScreenJs),'character vital explanations should follow HP, XP and Mana bars respectively');
580
+
assert.ok(!/character-growth-notes/.test(characterScreenJs),'vital explanations should not be grouped away from their bars');
0 commit comments