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:
1 parent
d3acd9aa9a
commit
dc9625c3b2
9 files changed
+119
-49
No files matched your search
@@ -84,6 +84,29 @@ describe("ContentLockup", () => {
|
||||
expect(link.className).toMatch(/focus-visible:outline/);
|
||||
});
|
||||
|
||||
it("renders the ask subtitle as a paragraph, not a heading", () => {
|
||||
renderWithProviders(
|
||||
<ContentLockup
|
||||
variant="ask"
|
||||
headingLevel="h2"
|
||||
title="Still have questions?"
|
||||
subtitle="Get answers from an experienced organizer"
|
||||
/>,
|
||||
);
|
||||
|
||||
expect(
|
||||
screen.getByRole("heading", { name: "Still have questions?" }).tagName,
|
||||
).toBe("H2");
|
||||
expect(
|
||||
screen.queryByRole("heading", {
|
||||
name: "Get answers from an experienced organizer",
|
||||
}),
|
||||
).not.toBeInTheDocument();
|
||||
expect(
|
||||
screen.getByText("Get answers from an experienced organizer").tagName,
|
||||
).toBe("P");
|
||||
});
|
||||
|
||||
it("renders the title as h2 when headingLevel is h2", () => {
|
||||
renderWithProviders(
|
||||
<ContentLockup
|
||||
|
||||
Reference in new issue
Block a user