testaro 35.0.7 → 35.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tests/alfa.js +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "35.0.7",
3
+ "version": "35.0.8",
4
4
  "description": "Run 1000 web accessibility tests from 10 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tests/alfa.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- © 2021–2023 CVS Health and/or one of its affiliates. All rights reserved.
2
+ © 2021–2024 CVS Health and/or one of its affiliates. All rights reserved.
3
3
 
4
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  of this software and associated documentation files (the "Software"), to deal
@@ -123,6 +123,15 @@ exports.reporter = async (page, options) => {
123
123
  codeLines: codeLines.map(line => line.length > 300 ? `${line.slice(0, 300)}...` : line)
124
124
  }
125
125
  };
126
+ // If the rule summary is missing:
127
+ if (outcomeData.rule.ruleSummary === '') {
128
+ // If a first requirement title exists:
129
+ const {requirements} = outcomeData.rule;
130
+ if (requirements && requirements.length && requirements[0].title) {
131
+ // Make it the rule summary.
132
+ outcomeData.rule.ruleSummary = requirements[0].title;
133
+ }
134
+ }
126
135
  const etcTags = [];
127
136
  tags.forEach(tag => {
128
137
  if (tag.type === 'scope') {