fix: improve cte review presentation
This commit is contained in:
@@ -84,3 +84,11 @@ test("(c) layout toggle flips its label between Orizzontale and Verticale", asyn
|
||||
screen.queryByRole("button", { name: /horizontal/i })
|
||||
).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
test("a single SQL block hides the multi-block layout toggle", async () => {
|
||||
render(<SqlViewer blocks={[blocks[0]]} />);
|
||||
await waitFor(() => expect(screen.getByTestId("hl")).toBeInTheDocument());
|
||||
|
||||
expect(screen.queryByRole("button", { name: /horizontal/i })).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole("button", { name: /vertical/i })).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user