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:
@@ -63,4 +63,27 @@ describe("AboutPage", () => {
|
||||
}),
|
||||
).toHaveAttribute("href", getAssetPath(governanceBookletPath()));
|
||||
});
|
||||
|
||||
test("shows sourced About statistics with as-of years", () => {
|
||||
render(<AboutPage />);
|
||||
const page = messages.pages.about;
|
||||
|
||||
expect(screen.getByText("420M+")).toBeInTheDocument();
|
||||
expect(screen.getByText("24%")).toBeInTheDocument();
|
||||
expect(screen.getByText("45%")).toBeInTheDocument();
|
||||
expect(screen.getByText("800+")).toBeInTheDocument();
|
||||
expect(screen.queryByText("8000+")).not.toBeInTheDocument();
|
||||
expect(screen.queryByText("27%")).not.toBeInTheDocument();
|
||||
|
||||
for (const item of page.stats.items) {
|
||||
expect(screen.getByText(item.label)).toBeInTheDocument();
|
||||
if (item.sourceHref) {
|
||||
expect(
|
||||
screen.getAllByRole("link").some(
|
||||
(link) => link.getAttribute("href") === item.sourceHref,
|
||||
),
|
||||
).toBe(true);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user