import { describe, it, expect } from "vitest"; import { renderWithProviders as render, screen } from "../utils/test-utils"; import "@testing-library/jest-dom/vitest"; import { InformationalScreen } from "../../app/create/screens/informational/InformationalScreen"; describe("InformationalScreen", () => { it("renders without crashing", () => { render(); expect( screen.getByRole("heading", { name: "How CommunityRule helps groups like yours", }), ).toBeInTheDocument(); }); it("renders lockup description", () => { render(); expect( screen.getByText( /This flow will give you recommendations to improve your community/i, ), ).toBeInTheDocument(); }); it("renders workshop as a link (URL TBD) with underline per Figma", () => { render(); const workshop = screen.getByRole("link", { name: "workshop" }); expect(workshop).toHaveAttribute("href", "#"); expect(workshop.className).toMatch(/underline/); }); it("renders first numbered list item title", () => { render(); expect( screen.getByText("Tell us about your organization"), ).toBeInTheDocument(); }); });