fix: harden CHRNX shell accessibility
This commit is contained in:
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`);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user