testilo 16.0.1 → 16.0.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "16.0.1",
3
+ "version": "16.0.2",
4
4
  "description": "Prepares and processes Testaro reports",
5
5
  "main": "aim.js",
6
6
  "scripts": {
@@ -28,7 +28,7 @@ const getScoreRow = (componentName, score) => `<tr><th>${componentName}</th><td>
28
28
  const populateQuery = (report, query) => {
29
29
  const {sources, jobData, score} = report;
30
30
  const {script, target, requester} = sources;
31
- const {scoreProcID, summary, details} = score;
31
+ const {scoreProcID, summary, details, history} = score;
32
32
  query.ts = script;
33
33
  query.sp = scoreProcID;
34
34
  query.dp = id;
@@ -48,8 +48,8 @@ const populateQuery = (report, query) => {
48
48
  query[sumItem] = summary[sumItem];
49
49
  rows.summaryRows.push(getScoreRow(sumItem, query[sumItem]));
50
50
  });
51
- score.history.forEach(event => {
52
- historyRows.push(getScoreRow(... event));
51
+ history.forEach(event => {
52
+ rows.historyRows.push(getScoreRow(... event));
53
53
  });
54
54
  query.scoreHistory = historyRows.join(innerJoiner);
55
55
  // Sort the issue IDs in descending score order.
@@ -5306,9 +5306,7 @@ exports.issues = {
5306
5306
  variable: false,
5307
5307
  quality: 1,
5308
5308
  what: 'Element text is distorted by a transform style property'
5309
- }
5310
- },
5311
- testaro: {
5309
+ },
5312
5310
  allCaps: {
5313
5311
  variable: false,
5314
5312
  quality: 1,
@@ -5440,6 +5438,16 @@ exports.issues = {
5440
5438
  variable: false,
5441
5439
  quality: 1,
5442
5440
  what: 'Element with main role has no unique visible label among the main-role elements'
5441
+ },
5442
+ aria_main_label_visible: {
5443
+ variable: false,
5444
+ quality: 1,
5445
+ what: 'Element with a main role has no unique visible label among the main-role elements'
5446
+ },
5447
+ aria_main_label_unique: {
5448
+ variable: false,
5449
+ quality: 1,
5450
+ what: 'Element with a main role has no unique label among the main-role elements'
5443
5451
  }
5444
5452
  }
5445
5453
  }
@@ -51,7 +51,6 @@ Object.keys(issues).forEach(issueName => {
51
51
 
52
52
  // Scores a report.
53
53
  exports.scorer = report => {
54
- console.log(`Scoring report ${report.id}`);
55
54
  // If there are any acts in the report:
56
55
  const {acts} = report;
57
56
  if (Array.isArray(acts) && acts.length) {