testilo 19.1.0 → 19.1.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": "19.1.0",
3
+ "version": "19.1.2",
4
4
  "description": "Prepares and processes Testaro reports",
5
5
  "main": "aim.js",
6
6
  "scripts": {
@@ -53,7 +53,7 @@
53
53
  <h2>Issue scores</h2>
54
54
  <p>The score on an issue depends on the <dfn>severity</dfn> (user impact and certainty) of the issue and on how many instances were reported (by one or more tools).</p>
55
55
  <table class="allBorder thirdCellRight">
56
- <caption>Issue scores</caption>
56
+ <caption>Summary of issues</caption>
57
57
  <thead>
58
58
  <tr><th>Issue</th><th>WCAG</th><th>Score</th><th>Tools Reporting the Issue</th></tr>
59
59
  </thead>
@@ -19,9 +19,9 @@ const innerJoiner = '\n ';
19
19
  // Gets a row of the score-summary table.
20
20
  const getScoreRow = (componentName, score) => `<tr><th>${componentName}</th><td>${score}</td></tr>`;
21
21
  // Gets a row of the issue-score-summary table.
22
- const getIssueScoreRow = (issueID, wcag, score, tools) => {
22
+ const getIssueScoreRow = (summary, wcag, score, tools) => {
23
23
  const toolList = tools.join(', ');
24
- return `<tr><th>${issueID}</th><td>${wcag}<td>${score}</td><td>${toolList}</tr>`;
24
+ return `<tr><th>${summary}</th><td>${wcag}<td>${score}</td><td>${toolList}</tr>`;
25
25
  };
26
26
  // Adds parameters to a query for a digest.
27
27
  const populateQuery = (report, query) => {
@@ -54,7 +54,7 @@ const populateQuery = (report, query) => {
54
54
  issueIDs.forEach(issueID => {
55
55
  const {score, tools} = details.issue[issueID];
56
56
  rows.issueRows.push(
57
- getIssueScoreRow(issueID, issues[issueID].wcag, score, Object.keys(tools))
57
+ getIssueScoreRow(issues[issueID].summary, issues[issueID].wcag, score, Object.keys(tools))
58
58
  );
59
59
  });
60
60
  // Add the rows to the query.
@@ -64,7 +64,7 @@ const populateQuery = (report, query) => {
64
64
  // Add paragraph groups about the issue details to the query.
65
65
  const issueDetailRows = [];
66
66
  issueIDs.forEach(issueID => {
67
- issueDetailRows.push(`<h3 class="bars">Issue <code>${issueID}</code></h3>`);
67
+ issueDetailRows.push(`<h3 class="bars">Issue: ${issues[issueID].summary}</h3>`);
68
68
  issueDetailRows.push(`<p>Impact: ${issues[issueID].why || 'N/A'}</p>`);
69
69
  issueDetailRows.push(`<p>WCAG: ${issues[issueID].wcag || 'N/A'}</p>`);
70
70
  const issueData = details.issue[issueID];