testaro 50.0.0 → 50.1.1

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/run.js +6 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "50.0.0",
3
+ "version": "50.1.1",
4
4
  "description": "Run 1000 web accessibility tests from 11 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/run.js CHANGED
@@ -82,12 +82,12 @@ const errorWords = [
82
82
  'violates',
83
83
  'warning'
84
84
  ];
85
- // Time limits on tools.
85
+ // Time limits on tools, accounting for page reloads by 6 Testaro tests.
86
86
  const timeLimits = {
87
87
  alfa: 20,
88
88
  ed11y: 30,
89
89
  ibm: 30,
90
- testaro: 60
90
+ testaro: 150 + Math.round(6 * process.env.WAITS / 1000)
91
91
  };
92
92
 
93
93
  // ########## VARIABLES
@@ -501,7 +501,7 @@ const wait = ms => {
501
501
  }, ms);
502
502
  });
503
503
  };
504
- // Reports a job being aborted and returns an abortive act index.
504
+ // Reports a job being aborted.
505
505
  const abortActs = (report, actIndex) => {
506
506
  // Add data on the aborted act to the report.
507
507
  report.jobData.abortTime = nowString();
@@ -543,7 +543,8 @@ const doActs = async (report) => {
543
543
  const standard = report.standard || 'only';
544
544
  const reportPath = 'temp/report.json';
545
545
  // For each act in the reeport.
546
- for (const actIndex in acts) {
546
+ for (const doActsIndex in acts) {
547
+ actIndex = doActsIndex;
547
548
  // If the job has not been aborted:
548
549
  if (report.jobData && ! report.jobData.aborted) {
549
550
  let act = acts[actIndex];
@@ -584,7 +585,7 @@ const doActs = async (report) => {
584
585
  // If the performance of acts is to stop:
585
586
  if (act.jump === 0) {
586
587
  // Quit.
587
- actIndex = -2;
588
+ break;
588
589
  }
589
590
  // Otherwise, if there is a numerical jump:
590
591
  else if (act.jump) {