fix: harden CHRNX shell accessibility

This commit is contained in:
chrnx committed 2026-08-11 17:12:18 -05:00
1 parent f371db4cb5
commit e1579657d6
14 files changed
+520 -54

No files matched your search

@@ -33,3 +33,13 @@ test('wordmark uses real fallback-aware SVG text and shares exact cat geometry',
assert.match(wordmark, /<text\b[^>]*>CHRNX<\/text>/);
assert.match(wordmark, /Zen Maru Gothic/);
});
test('footer user-facing copy lives in an extractable PHP render block', async () => {
const part = await readProjectFile('parts/footer.html');
const render = await readProjectFile('blocks/footer-content/render.php');
assert.match(part, /<!-- wp:chrnx\/footer-content \/-->/);
assert.doesNotMatch(part, /Made in Sinaloa|Journal|Footer navigation/);
for (const text of ['Footer navigation', 'Journal', 'Projects', 'Music', 'Podcasts', 'About', 'Made in Sinaloa, shared from home.']) {
assert.ok(render.includes(`'${text}', 'chrnx'`), `${text} must use the chrnx text domain`);
}
});