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) <noreply@anthropic.com>
This commit is contained in:
chrnxandClaude Opus 5 committed 2026-08-15 14:42:26 -05:00
1 parent d0b928eba4
commit 2e43e89795
1 file changed
+12
+12
View File
@@ -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/);
});