testaro 72.2.1 → 72.2.3

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": "testaro",
3
- "version": "72.2.1",
3
+ "version": "72.2.3",
4
4
  "description": "Run 1300 web accessibility tests from 10 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/procs/doActs.js CHANGED
@@ -48,15 +48,17 @@ const moves = {
48
48
  const waits = Number.parseInt(process.env.WAITS) || 0;
49
49
  // Time limits in seconds on tools, accounting for page reloads by 6 Testaro tests.
50
50
  const timeLimits = {
51
- alfa: 30,
51
+ alfa: 35,
52
52
  aslint: 45,
53
+ axe: 30,
53
54
  ed11y: 30,
54
55
  htmlcs: 30,
55
56
  ibm: 30,
56
- nuVal: 30,
57
- nuVnu: 20,
57
+ nuVal: 40,
58
+ nuVnu: 25,
58
59
  qualWeb: 45,
59
- testaro: 150 + Math.round(6 * waits / 1000)
60
+ testaro: 200 + Math.round(6 * waits / 1000),
61
+ wave: 25
60
62
  };
61
63
  // Timeout multiplier.
62
64
  const timeoutMultiplier = Number.parseFloat(process.env.TIMEOUT_MULTIPLIER) || 1;
package/tests/alfa.js CHANGED
@@ -55,8 +55,15 @@ exports.reporter = async (page, report, actIndex) => {
55
55
  };
56
56
  }
57
57
  try {
58
- // Wait for a stable page to make the page and its alfa version consistent.
59
- await page.waitForLoadState('networkidle', {timeout: applyMultiplier(6000)});
58
+ try {
59
+ // Wait for a stable page to make the page and its alfa version consistent.
60
+ await page.waitForLoadState('networkidle', {timeout: applyMultiplier(9000)});
61
+ }
62
+ // If that fails:
63
+ catch (error) {
64
+ // Wait for the page to be loaded.
65
+ await page.waitForLoadState('domcontentloaded', {timeout: applyMultiplier(6000)});
66
+ }
60
67
  const doc = await page.evaluateHandle('document');
61
68
  const alfaPage = await Playwright.toPage(doc);
62
69
  // Test the page content with the specified rules.