equal-access
equal-access copied to clipboard
[BUG] Node.js version of `getCompliance(html, 'my-label')` does not mark violation `ignored: true` in newly generated report file
Node.js version of accessibility checker running in Jest.
Steps and test to reproduce this at jest without specifying any config:
const { report: actual } = await aChecker.getCompliance(
'<html><header></header><body><div>123</div></body></html>',
'nate'
);
const assertActual = aChecker.assertCompliance(actual);
expect(assertActual).toBe(0);
- Run attached test
- Run
assertCompliance(report)it returns2(this is the expected behavior as we don't have any baseline yet) - Copy the results file /results/nate.json to /baselines/nate.json
- Run attached test again
- New /results/nate.json still has all its violations
ignored: falseandsummary.count.ignored: 0(expectingtrueandignoredbumped but it doesn't happen) - Run
assertCompliance(report)it returns0(expected behavior as new scan find out exactly same violations as baseline)
triage: doesn't match the baseline, bug in automated tool (nodeJs)
Fixed, will show up in next release.