fix(lanes): make proof gallery test assertion actually fail on missing panel
This commit is contained in:
@@ -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 () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user