Link every Home feature card to the page that covers it, and keep Ask an organizer from adding a second heading.

This commit is contained in:
adilallo committed 2026-11-12 17:09:48 -07:00
1 parent d3acd9aa9a
commit dc9625c3b2
9 files changed
+119 -49

No files matched your search

+5 -2
View File
@@ -47,9 +47,12 @@ describe("AskOrganizer (behavioral tests)", () => {
it("renders subtitle when provided", () => {
render(<AskOrganizer title="Test" subtitle="Subtitle" />);
const subtitle = screen.getByText("Subtitle");
expect(subtitle).toBeInTheDocument();
expect(subtitle.tagName).toBe("P");
expect(
screen.getByRole("heading", { name: "Subtitle" }),
).toBeInTheDocument();
screen.queryByRole("heading", { name: "Subtitle" }),
).not.toBeInTheDocument();
});
it("renders CTA button with default label", () => {