Match the marketing homepage and About page to the latest Figma: black hero CTA, spaces in word-split headings, redesigned feature grid, and cited About statistics.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -78,4 +78,21 @@ describe("SectionHeader rule stack title max width", () => {
|
||||
}),
|
||||
).toHaveClass("md:max-w-[571px]");
|
||||
});
|
||||
|
||||
it("keeps spaces between stacked desktop title lines", () => {
|
||||
render(
|
||||
<SectionHeader
|
||||
title="How CommunityRule helps"
|
||||
subtitle="Start from a proven pattern."
|
||||
variant="multi-line"
|
||||
stackedDesktopLines={["How", "CommunityRule", "helps"]}
|
||||
/>,
|
||||
);
|
||||
|
||||
const heading = screen.getByRole("heading", {
|
||||
name: /How CommunityRule helps/,
|
||||
});
|
||||
expect(heading.textContent).toMatch(/How CommunityRule helps/);
|
||||
expect(heading.textContent).not.toMatch(/HowCommunityRulehelps/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user