From 142dfa936074bade928b593d40a614b9f6e0da58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 8 Oct 2026 18:45:02 +0200 Subject: [PATCH] Let the score section test settle its reveal The section now waits for its reads before it shows; the mocked query client reports nothing in flight. --- .../settings/__tests__/score-section-saved-selection.test.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/settings/__tests__/score-section-saved-selection.test.tsx b/src/components/settings/__tests__/score-section-saved-selection.test.tsx index 2e92203aa..91fc87c40 100644 --- a/src/components/settings/__tests__/score-section-saved-selection.test.tsx +++ b/src/components/settings/__tests__/score-section-saved-selection.test.tsx @@ -79,7 +79,10 @@ vi.mock("@tanstack/react-query", () => ({ setQueryData: vi.fn(), getQueryData: vi.fn(), invalidateQueries: vi.fn(), + isFetching: () => 0, }), + // The section reveals once its reads settle; nothing is in flight here. + useIsFetching: () => 0, })); vi.mock("sonner", () => ({