Fix research complete notification using raw ID instead of display name
Balance Check / balance-simulation (push) Successful in 6m37s
Balance Check / multi-run-balance (push) Failing after 20m20s
CI / build-and-push (push) Successful in 33s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 12:22:17 -04:00
parent a8746246f8
commit 6105c28887
2 changed files with 7 additions and 5 deletions
+5 -2
View File
@@ -122,8 +122,11 @@ describe('processTick', () => {
},
});
const result = processTick(state);
const notifications = (result as Record<string, unknown>)['_notifications'] as Array<{ title: string }>;
expect(notifications.some(n => n.title === 'Research Complete')).toBe(true);
const notifications = (result as Record<string, unknown>)['_notifications'] as Array<{ title: string; message: string }>;
const researchNotif = notifications.find(n => n.title === 'Research Complete');
expect(researchNotif).toBeDefined();
expect(researchNotif!.message).toContain('Advanced Cooling');
expect(researchNotif!.message).not.toContain('advanced-cooling');
expect(result.research!.completedResearch).toContain('advanced-cooling');
});