Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/report-react/babel…
Browse files Browse the repository at this point in the history
…/traverse-7.23.2
  • Loading branch information
tombrunet authored Oct 19, 2023
2 parents ddde765 + afef522 commit d252e61
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ export class OptionsApp extends React.Component<{}, OptionsAppState> {

<p style={{ maxWidth: "100%" }}><strong>Preview rules: </strong> Try an experimental preview of possible future rule set</p>

<p style={{ maxWidth: "100%" }}>For details on rule set changes between deployments, see <Link inline={true} size="md" className="link" href="https://www.ibm.com/able/requirements/release-notes" target="_blank" style={{ color: '#002D9C' }}>Release notes</Link></p>
<p style={{ maxWidth: "100%" }}>For details on rule set changes between deployments, see <Link inline={true} size="md" className="link" href="https://github.com/IBMa/equal-access/releases" target="_blank" style={{ color: '#002D9C' }}>Release notes</Link></p>
</Modal>, document.body)}

{typeof document === 'undefined' ? null : ReactDOM.createPortal(<Modal
Expand Down
20 changes: 11 additions & 9 deletions accessibility-checker/test-act-w3/act.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,11 @@ async function getTestcases() {
async function getAssertion(ruleId, aceRules, result) {
const ruleset = await rulesetP;
let ruleTitle = "";
let scs = []
for (let aceRule of aceRules) {
if (aceRule.ruleId === ruleId) {
ruleTitle = `${aceRule.ruleId}:${aceRule.reasonIds.join(",")}`;
}
}
return {
"@type": "Assertion",
"test": {
"title": ruleTitle,
"isPartOf": ruleset.checkpoints
scs = scs.concat(ruleset.checkpoints
// Get checkpoints that have this rule
.filter(cp => (
cp.rules
Expand All @@ -101,9 +96,16 @@ async function getAssertion(ruleId, aceRules, result) {
rule.id === ruleId
// and either maps to all reasons, or one the these reasons is selected
&& (!rule.reasonCodes || rule.reasonCodes.filter(code => aceRule.reasonIds.includes(code)))
).length > 0)
)).length > 0
// Replace with the scId
)).map(cp => cp.scId)
)).map(cp => cp.scId));
}
}
return {
"@type": "Assertion",
"test": {
"title": ruleTitle,
"isPartOf": Array.from(new Set(scs))
},
"result": { "outcome": result }
}
Expand Down

0 comments on commit d252e61

Please sign in to comment.