test(game-detail): wait for points refetch instead of fixed sleep

This commit is contained in:
lobo committed 2026-10-13 09:17:41 +02:00
1 parent 0924600d95
commit 600cf07b5a
1 file changed
+1 -2
+1 -2
View File
@@ -38,6 +38,5 @@ it('checksThePointsAgainAfterTheAchievementRefresh', async () => {
// The refresh stored the ending achievement: Core would settle the finish now (the old single call did).
finishRefresh(json(200, {...game, achievementsStale: false, achievementsUnlocked: 5}));
await new Promise((resolve) => setTimeout(resolve, 50));
expect(pointsCalls()).toBe(2);
await waitFor(() => expect(pointsCalls()).toBe(2));
});