From 6cb5fb356cdf1783053884f23a4543d3783c23d9 Mon Sep 17 00:00:00 2001 From: nntrivi2001 Date: Tue, 4 Aug 2026 16:34:44 +0700 Subject: [PATCH] fix(lanes): make proof gallery test assertion actually fail on missing panel --- client/src/pages/__tests__/Workspace.test.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/client/src/pages/__tests__/Workspace.test.tsx b/client/src/pages/__tests__/Workspace.test.tsx index cd2694c..1605db0 100644 --- a/client/src/pages/__tests__/Workspace.test.tsx +++ b/client/src/pages/__tests__/Workspace.test.tsx @@ -601,15 +601,9 @@ describe("Workspace — proof gallery", () => { }); await renderWorkspace(); - await waitFor( - () => { - const gallery = screen.queryByTestId("proof-gallery"); - if (gallery) { - expect(gallery).toBeInTheDocument(); - } - }, - { timeout: 2000 } - ); + await waitFor(() => { + expect(screen.getByTestId("proof-gallery")).toBeInTheDocument(); + }); }); it("shows no gallery panel when the selected feature has no proof", async () => {