testaro 13.0.0 → 13.0.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/README.md +9 -9
- package/package.json +1 -1
- package/tests/continuum.js +4 -4
package/README.md
CHANGED
|
@@ -34,15 +34,15 @@ Testaro uses:
|
|
|
34
34
|
Testaro includes some of its own accessibility tests. Some of them are derived from tests performed by the [BBC Accessibility Standards Checker](https://github.com/bbc/bbc-a11y).
|
|
35
35
|
|
|
36
36
|
In addition, Testaro performs tests of these tools:
|
|
37
|
-
- [accessibility-checker](https://www.npmjs.com/package/accessibility-checker) (
|
|
38
|
-
- [alfa](https://alfa.siteimprove.com/) (Siteimprove
|
|
39
|
-
- [axe-playwright](https://www.npmjs.com/package/axe-playwright) (Deque
|
|
40
|
-
- [Continuum Community Edition](https://www.webaccessibility.com/tools/)
|
|
41
|
-
- [HTML CodeSniffer](https://www.npmjs.com/package/html_codesniffer) (Squiz
|
|
42
|
-
- [Nu Html Checker](https://github.com/validator/validator)
|
|
43
|
-
- [QualWeb core](https://www.npmjs.com/package/@qualweb/core)
|
|
44
|
-
- [Tenon](https://tenon.io/documentation/what-tenon-tests.php) (
|
|
45
|
-
- [WAVE API](https://wave.webaim.org/api/) (WebAIM
|
|
37
|
+
- [accessibility-checker](https://www.npmjs.com/package/accessibility-checker) (IBM)
|
|
38
|
+
- [alfa](https://alfa.siteimprove.com/) (Siteimprove)
|
|
39
|
+
- [axe-playwright](https://www.npmjs.com/package/axe-playwright) (Deque)
|
|
40
|
+
- [Continuum Community Edition](https://www.webaccessibility.com/tools/) (Level Access)
|
|
41
|
+
- [HTML CodeSniffer](https://www.npmjs.com/package/html_codesniffer) (Squiz Labs)
|
|
42
|
+
- [Nu Html Checker](https://github.com/validator/validator) (World Wide Web Consortium)
|
|
43
|
+
- [QualWeb core](https://www.npmjs.com/package/@qualweb/core) (University of Lisbon)
|
|
44
|
+
- [Tenon](https://tenon.io/documentation/what-tenon-tests.php) (Tenon)
|
|
45
|
+
- [WAVE API](https://wave.webaim.org/api/) (WebAIM)
|
|
46
46
|
|
|
47
47
|
As of this version, the counts of tests of the tools referenced above were:
|
|
48
48
|
- Alfa: 103
|
package/package.json
CHANGED
package/tests/continuum.js
CHANGED
|
@@ -22,7 +22,7 @@ exports.reporter = async (page, rules) => {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
if (! result.prevented) {
|
|
25
|
-
// Run the Continuum ruleset and get the result, failing if none within
|
|
25
|
+
// Run the Continuum ruleset and get the result, failing if none within 30 seconds.
|
|
26
26
|
result = await page.evaluate(async rules => {
|
|
27
27
|
continuum.setUp(null, null, window);
|
|
28
28
|
// If a set of rules to be employed was specified:
|
|
@@ -36,11 +36,11 @@ exports.reporter = async (page, rules) => {
|
|
|
36
36
|
// Run all the tests.
|
|
37
37
|
bigResultPromise = continuum.runAllTests();
|
|
38
38
|
}
|
|
39
|
-
// Allow
|
|
39
|
+
// Allow 30 seconds for the result compilation.
|
|
40
40
|
const deadlinePromise = new Promise(resolve => {
|
|
41
41
|
setTimeout(() => {
|
|
42
42
|
resolve('timeout');
|
|
43
|
-
},
|
|
43
|
+
}, 30000);
|
|
44
44
|
});
|
|
45
45
|
const bigResult = await Promise.race([bigResultPromise, deadlinePromise]);
|
|
46
46
|
if (Array.isArray(bigResult)) {
|
|
@@ -56,7 +56,7 @@ exports.reporter = async (page, rules) => {
|
|
|
56
56
|
else if (bigResult === 'timeout') {
|
|
57
57
|
return {
|
|
58
58
|
prevented: true,
|
|
59
|
-
error: 'ERROR: Running
|
|
59
|
+
error: 'ERROR: Running tests timed out'
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
else {
|