testaro 24.0.0 → 24.0.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": "24.0.0",
3
+ "version": "24.0.1",
4
4
  "description": "Run 920 web accessibility tests from 9 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/testaro/focOp.js CHANGED
@@ -45,5 +45,13 @@ exports.reporter = async (page, withItems) => {
45
45
  const whats = [
46
46
  'Element is Tab-focusable but not operable', 'Elements are Tab-focusable but not operable'
47
47
  ];
48
- return await report(withItems, all, 'focOp', whats, 2);
48
+ const testReport = await report(withItems, all, 'focOp', whats, 2);
49
+ // Reload the page, because isOperable() modified it.
50
+ try {
51
+ await page.reload({timeout: 15000});
52
+ }
53
+ catch(error) {
54
+ console.log('ERROR: page reload timed out');
55
+ }
56
+ return testReport;
49
57
  };
package/testaro/opFoc.js CHANGED
@@ -46,5 +46,13 @@ exports.reporter = async (page, withItems) => {
46
46
  'Element is operable (__param__) but not Tab-focusable',
47
47
  'Elements are operable but not Tab-focusable'
48
48
  ];
49
- return await report(withItems, all, 'opFoc', whats, 3);
49
+ const testReport = await report(withItems, all, 'opFoc', whats, 3);
50
+ // Reload the page, because isOperable() modified it.
51
+ try {
52
+ await page.reload({timeout: 15000});
53
+ }
54
+ catch(error) {
55
+ console.log('ERROR: page reload timed out');
56
+ }
57
+ return testReport;
50
58
  };