Hide unused helper marks on selection cards and modal section labels until tooltip behavior ships.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -54,6 +54,24 @@ describe("Selection Component", () => {
|
||||
expect(card).toHaveClass("flex-row");
|
||||
});
|
||||
|
||||
it("does not render a helper icon by default", () => {
|
||||
render(<Selection {...defaultProps} orientation="vertical" />);
|
||||
|
||||
expect(screen.queryByText("?")).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("renders a helper icon when showInfoIcon is true", () => {
|
||||
render(
|
||||
<Selection
|
||||
{...defaultProps}
|
||||
orientation="vertical"
|
||||
showInfoIcon={true}
|
||||
/>,
|
||||
);
|
||||
|
||||
expect(screen.getByText("?")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("handles click events", () => {
|
||||
const handleClick = vi.fn();
|
||||
render(<Selection {...defaultProps} onClick={handleClick} />);
|
||||
|
||||
Reference in New Issue
Block a user