fix: harden responsive accessibility contracts

This commit is contained in:
NuklearRabbit
2026-07-29 16:22:46 +02:00
parent ae6c41ff90
commit a7ab2d6cc8
4 changed files with 33 additions and 5 deletions
+10
View File
@@ -265,3 +265,13 @@ test("Git Validator exposes scored best-practice checks and bounded repairs", as
assert.match(preload, /gitValidatorScan/);
assert.match(preload, /gitValidatorRepair/);
});
test("renderer guards accessible names, labels and uncertain inventory evidence", async () => {
const renderer = await readFile(new URL("../src/renderer/app.js", import.meta.url), "utf8");
const styles = await readFile(new URL("../src/renderer/styles.css", import.meta.url), "utf8");
assert.match(renderer, /button\.icon-button:not\(\[aria-label\]\)/);
assert.match(renderer, /\.field > label:not\(\[for\]\)/);
assert.match(renderer, /topCandidate\.confidence \|\| topCandidate\.status \|\| "review required"/);
assert.match(styles, /\.action-panel-body \.panel-callout > h2/);
assert.match(styles, /@media \(max-height: 760px\)/);
});