fix: harden responsive accessibility contracts
This commit is contained in:
@@ -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\)/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user