testaro 29.1.0 → 29.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "29.1.0",
3
+ "version": "29.1.1",
4
4
  "description": "Run 960 web accessibility tests from 9 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -253,7 +253,7 @@ exports.reporter = async (page, withItems, trialKeySpecs = []) => {
253
253
  excerpt: ''
254
254
  });
255
255
  }
256
- // Reload the page.
256
+ // Reload the page, because attributes of elements were modified.
257
257
  try {
258
258
  await page.reload({timeout: 15000});
259
259
  }
package/testaro/focAll.js CHANGED
@@ -53,7 +53,7 @@ exports.reporter = async page => {
53
53
  tabFocused,
54
54
  discrepancy: tabFocused - focusableCount
55
55
  };
56
- // Reload the page.
56
+ // Reload the page, because properties were added to elements.
57
57
  try {
58
58
  await page.reload({timeout: 15000});
59
59
  }
package/testaro/hover.js CHANGED
@@ -72,7 +72,7 @@ exports.reporter = async (page, withItems) => {
72
72
  'Hovering over the element __param__',
73
73
  'Hovering over elements adds elements to or subtracts elements from the page'
74
74
  ];
75
- // Reload the page.
75
+ // Reload the page, because hovering may have caused content changes.
76
76
  try {
77
77
  await page.reload({timeout: 15000});
78
78
  }
package/testaro/tabNav.js CHANGED
@@ -328,6 +328,13 @@ exports.reporter = async (page, withItems) => {
328
328
  };
329
329
  // FUNCTION DEFINITIONS END
330
330
  await testTabLists(tabLists);
331
+ // Reload the page, because keyboard navigation may have triggered content changes.
332
+ try {
333
+ await page.reload({timeout: 15000});
334
+ }
335
+ catch(error) {
336
+ console.log('ERROR: page reload timed out');
337
+ }
331
338
  }
332
339
  const totals = data.totals ? [
333
340
  data.totals.navigations.all.incorrect,
@@ -371,13 +378,6 @@ exports.reporter = async (page, withItems) => {
371
378
  excerpt: ''
372
379
  });
373
380
  }
374
- // Reload the page.
375
- try {
376
- await page.reload({timeout: 15000});
377
- }
378
- catch(error) {
379
- console.log('ERROR: page reload timed out');
380
- }
381
381
  return {
382
382
  data,
383
383
  totals,