fix(lanes): make proof gallery test assertion actually fail on missing panel

This commit is contained in:
2026-08-04 16:34:44 +07:00
parent fccfa5ad17
commit 6cb5fb356c
@@ -601,15 +601,9 @@ describe("Workspace — proof gallery", () => {
}); });
await renderWorkspace(); await renderWorkspace();
await waitFor( await waitFor(() => {
() => { expect(screen.getByTestId("proof-gallery")).toBeInTheDocument();
const gallery = screen.queryByTestId("proof-gallery"); });
if (gallery) {
expect(gallery).toBeInTheDocument();
}
},
{ timeout: 2000 }
);
}); });
it("shows no gallery panel when the selected feature has no proof", async () => { it("shows no gallery panel when the selected feature has no proof", async () => {