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
@@ -124,6 +125,7 @@ test('chronicle keeps loaded tabs visible and shows sent blessings immediately',
124
125
assert.ok(/_injectLocalBlessing\(account,energy\)/.test(chronicleJs),'blessing success path should inject visible local action');
125
126
assert.ok(/receiver:action\.receiver/.test(chronicleJs),'chronicle entries should preserve blessing receiver for dedupe');
126
127
assert.ok(/\|blessing_sent\|/.test(chronicleJs),'blessing dedupe should ignore optimistic/replay block mismatch');
128
+
assert.ok(/function_updateLocalBlessingQuestProgress/.test(chronicleJs),'blessing quests should update immediately after a successful local blessing');
127
129
});
128
130
129
131
@@ -187,12 +189,22 @@ test('high-traffic UI narration and inventory stat labels are translated', funct
187
189
188
190
test('service worker updates quickly and keeps navigations network-first',function(){
189
191
constswJs=read('app/sw.js');
190
-
assert.ok(/viz-magic-v20/.test(swJs),'service worker cache version should be bumped');
192
+
assert.ok(/viz-magic-v21/.test(swJs),'service worker cache version should be bumped');
191
193
assert.ok(/self\.skipWaiting\(\)/.test(swJs),'service worker should activate new cache without waiting for all tabs to close');
192
194
assert.ok(/self\.clients\.claim\(\)/.test(swJs),'service worker should claim clients after activation');
193
195
assert.ok(/event\.request\.mode==='navigate'[\s\S]*fetch\(event\.request\)/.test(swJs),'navigation requests should prefer network to avoid stale cached index');
194
196
});
195
197
198
+
199
+
200
+
test('map travel updates through state-engine and blocks repeat-click loops',function(){
201
+
assert.ok(/functionprocessMoveResult/.test(stateEngineJs),'state engine should expose live movement path');
202
+
assert.ok(/processMoveResult:processMoveResult/.test(stateEngineJs),'live movement path should be exported');
203
+
assert.ok(/StateEngine\.processMoveResult\(user,regionId,optimisticBlock\)/.test(mapScreenJs),'map should update movement immediately through state engine');
204
+
assert.ok(/PENDING_TRAVEL_TTL_MS/.test(mapScreenJs),'pending travel state should have a stale guard');
205
+
assert.ok(/!\(pendingTravel&&pendingTravel\.account===user\)/.test(mapScreenJs),'pending travel should suppress repeat travel buttons');
206
+
});
207
+
196
208
test('leaderboard has local character fallback while 24h scan is empty or slow',function(){
197
209
assert.ok(/function_fallbackRowsFromState/.test(leaderboardJs),'leaderboard should expose local fallback rows');
198
210
assert.ok(/rows=_fallbackRowsFromState\(\)/.test(leaderboardJs),'leaderboard should use fallback when snapshot rows are empty');
0 commit comments