Use each catalog article’s Figma body ornaments instead of one shared pair.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilallo
2026-08-19 16:54:53 -06:00
co-authored by Cursor
parent 0f16c559c4
commit c2188015e3
23 changed files with 67 additions and 13 deletions
+23
View File
@@ -242,6 +242,29 @@ describe("BlogPostPage", () => {
expect(shapes[1]).toHaveClass("object-contain");
});
it("uses per-article body ornaments for catalog posts", async () => {
const { getBlogPostBySlug } = await import("../../lib/content");
vi.mocked(getBlogPostBySlug).mockReturnValue({
...mockPost,
slug: "resolving-active-conflicts",
});
const BlogPostPageComponent = await BlogPostPage({
params: { slug: "resolving-active-conflicts" },
});
render(BlogPostPageComponent);
const shapes = screen.getAllByAltText("");
expect(shapes[0]).toHaveAttribute(
"src",
"/content/blog/resolving-active-conflicts-ornament-right.png",
);
expect(shapes[1]).toHaveAttribute(
"src",
"/content/blog/resolving-active-conflicts-ornament-left.png",
);
});
it("applies correct styling to article content", async () => {
const BlogPostPageComponent = await BlogPostPage({
params: { slug: "test-article" },