import { render, screen } from "@testing-library/react"; import { describe, it, expect } from "vitest"; import Groups from "../../../app/components/sections/Groups"; describe("Groups", () => { it("renders a static icon tile grid", () => { const { container } = render( a, title: "One", description: "First description text.", }, { icon: b, title: "Two", description: "Second description text.", }, { icon: c, title: "Three", description: "Third description text.", }, { icon: d, title: "Four", description: "Fourth description text.", }, ]} />, ); expect( screen.getByRole("heading", { level: 2, name: "Who is this for?" }), ).toBeInTheDocument(); expect(screen.getAllByRole("article")).toHaveLength(4); expect(screen.queryByRole("button")).not.toBeInTheDocument(); expect( container.querySelector('[data-figma-node="22085-860411"]'), ).toBeTruthy(); }); });