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]>
2 files changed · +4 −4
e2e/editor-flow.spec.ts
+2
−2
| @@ -129,10 +129,10 @@ test.describe("docs site smoke", () => { | ||
| 129 | 129 | await expect(page).toHaveTitle(/tdd\.md/i); |
| 130 | 130 | }); |
| 131 | 131 | |
| 132 | - test("sama landing loads with sidebar nav", async ({ page }) => { | |
| 132 | + test("sama landing loads with docs chrome", async ({ page }) => { | |
| 133 | 133 | const res = await page.goto("/sama"); |
| 134 | 134 | expect(res?.status()).toBe(200); |
| 135 | - await expect(page.locator(".docs-sidebar")).toBeVisible(); | |
| 135 | + await expect(page.locator(".docs-content")).toBeVisible(); | |
| 136 | 136 | }); |
| 137 | 137 | |
| 138 | 138 | test("blog index lists at least one post", async ({ page }) => { |
src/c51_render_layout.ts
+2
−2
| @@ -67,7 +67,7 @@ ${robots}<link rel="canonical" href="${escape(ogPath)}"> | ||
| 67 | 67 | <meta property="og:description" content="${escape(description)}"> |
| 68 | 68 | <meta property="og:type" content="website"> |
| 69 | 69 | <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"> | |
| 71 | 71 | <meta property="og:image:type" content="image/png"> |
| 72 | 72 | <meta property="og:image:width" content="1200"> |
| 73 | 73 | <meta property="og:image:height" content="630"> |
| @@ -75,7 +75,7 @@ ${robots}<link rel="canonical" href="${escape(ogPath)}"> | ||
| 75 | 75 | <meta name="twitter:card" content="summary_large_image"> |
| 76 | 76 | <meta name="twitter:title" content="${escape(opts.title)}"> |
| 77 | 77 | <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"> | |
| 79 | 79 | <title>${escape(opts.title)}</title> |
| 80 | 80 | ${jsonLd}<style>${css}</style> |
| 81 | 81 | </head> |