Name stays required; description is a labelled optional textarea. Email uses native validity and form submit. Drop the dead workshop link and fix a few copy errors. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
857 B
TypeScript
20 lines
857 B
TypeScript
import { describe, it, expect } from "vitest";
|
|
import { screen } from "@testing-library/react";
|
|
import "@testing-library/jest-dom/vitest";
|
|
import { renderWithProviders } from "../utils/test-utils";
|
|
import { CommunityStructureSelectScreen } from "../../app/(app)/create/screens/select/CommunityStructureSelectScreen";
|
|
|
|
describe("CommunityStructureSelectScreen", () => {
|
|
it("does not render dummy help icons", () => {
|
|
renderWithProviders(<CommunityStructureSelectScreen />);
|
|
|
|
expect(screen.getByText("Organization Type")).toBeInTheDocument();
|
|
expect(screen.getByText("Scale")).toBeInTheDocument();
|
|
expect(screen.getByText("Maturity")).toBeInTheDocument();
|
|
expect(
|
|
screen.getByText(/Choose tags that describe your community/i),
|
|
).toBeInTheDocument();
|
|
expect(screen.queryByAltText("Help")).not.toBeInTheDocument();
|
|
});
|
|
});
|