syntaxai/tdd.md · commit 7854dd9

Social preview cache-bust + fix /sama smoke selector

- Append ?v=2 to og.png URLs so X/LinkedIn/Slack drop the pre-SAMA cache
- Update editor-flow smoke to assert .docs-content (the new docs chrome
  after the sama-docs layout swap removed .docs-sidebar)

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
author
syntaxai <[email protected]>
date
2026-05-22 09:02:46 +01:00
parent
7a27e00
commit
7854dd942132ad1a47ffc6c14fd2cea85ed1269a

2 files changed · +4 −4

modified e2e/editor-flow.spec.ts +2 −2
@@ -129,10 +129,10 @@ test.describe("docs site smoke", () => {
129129 await expect(page).toHaveTitle(/tdd\.md/i);
130130 });
131131
132- test("sama landing loads with sidebar nav", async ({ page }) => {
132+ test("sama landing loads with docs chrome", async ({ page }) => {
133133 const res = await page.goto("/sama");
134134 expect(res?.status()).toBe(200);
135- await expect(page.locator(".docs-sidebar")).toBeVisible();
135+ await expect(page.locator(".docs-content")).toBeVisible();
136136 });
137137
138138 test("blog index lists at least one post", async ({ page }) => {
modified src/c51_render_layout.ts +2 −2
@@ -67,7 +67,7 @@ ${robots}<link rel="canonical" href="${escape(ogPath)}">
6767 <meta property="og:description" content="${escape(description)}">
6868 <meta property="og:type" content="website">
6969 <meta property="og:url" content="${escape(ogPath)}">
70-<meta property="og:image" content="https://tdd.md/og.png">
70+<meta property="og:image" content="https://tdd.md/og.png?v=2">
7171 <meta property="og:image:type" content="image/png">
7272 <meta property="og:image:width" content="1200">
7373 <meta property="og:image:height" content="630">
@@ -75,7 +75,7 @@ ${robots}<link rel="canonical" href="${escape(ogPath)}">
7575 <meta name="twitter:card" content="summary_large_image">
7676 <meta name="twitter:title" content="${escape(opts.title)}">
7777 <meta name="twitter:description" content="${escape(description)}">
78-<meta name="twitter:image" content="https://tdd.md/og.png">
78+<meta name="twitter:image" content="https://tdd.md/og.png?v=2">
7979 <title>${escape(opts.title)}</title>
8080 ${jsonLd}<style>${css}</style>
8181 </head>