From 2e43e89795a7426822c6a3d701eb71dd46e8685e Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sat, 15 Aug 2026 14:42:26 -0500 Subject: [PATCH] test: guard taxonomy archive templates' key blocks by content Only the generic structural loop test covered taxonomy-chrnx_{project,show,release}.html; nothing asserted their block content, so the journal-stream regression fixed last round would have gone uncaught if it recurred. Add content tests for the project and show templates mirroring the existing archive/search idiom. Co-Authored-By: Claude Opus 5 (1M context) --- tests/smoke/templates.test.mjs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/smoke/templates.test.mjs b/tests/smoke/templates.test.mjs index 9475158..e073025 100644 --- a/tests/smoke/templates.test.mjs +++ b/tests/smoke/templates.test.mjs @@ -104,3 +104,15 @@ test('404 offers concise recovery with search, Journal, and home links', async ( assert.match(markup, /wp:chrnx\/journal-link/); assert.doesNotMatch(markup, /"url":"\//); }); + +test('taxonomy-chrnx_project surfaces the project detail and its post stream', async () => { + const markup = await readTemplate('taxonomy-chrnx_project'); + assert.match(markup, /wp:chrnx\/project-detail/); + assert.match(markup, /wp:chrnx\/journal-stream/); +}); + +test('taxonomy-chrnx_show surfaces show links and its episode stream', async () => { + const markup = await readTemplate('taxonomy-chrnx_show'); + assert.match(markup, /wp:chrnx\/show-links/); + assert.match(markup, /wp:chrnx\/journal-stream/); +});