testaro 40.0.2 → 41.0.0
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 +213 -217
- package/actSpecs.js +3 -3
- package/package.json +1 -1
- package/procs/device.js +59 -0
- package/procs/standardize.js +16 -8
- package/run.js +192 -178
- package/tests/ed11y.js +2 -2
package/tests/ed11y.js
CHANGED
|
@@ -34,7 +34,7 @@ const {xPath} = require('playwright-dompath');
|
|
|
34
34
|
|
|
35
35
|
// FUNCTIONS
|
|
36
36
|
|
|
37
|
-
//
|
|
37
|
+
// Performs and reports the Editoria11y tests.
|
|
38
38
|
exports.reporter = async (page, options) => {
|
|
39
39
|
// Get the nonce, if any.
|
|
40
40
|
const {act, report} = options;
|
|
@@ -42,7 +42,7 @@ exports.reporter = async (page, options) => {
|
|
|
42
42
|
const scriptNonce = jobData && jobData.lastScriptNonce;
|
|
43
43
|
// Get the tool script.
|
|
44
44
|
const script = await fs.readFile(`${__dirname}/../ed11y/editoria11y.min.js`, 'utf8');
|
|
45
|
-
//
|
|
45
|
+
// Perform the tests and get the violating elements and violation facts.
|
|
46
46
|
const reportJSHandle = await page.evaluateHandle(args => new Promise(async resolve => {
|
|
47
47
|
// If the report is incomplete after 20 seconds:
|
|
48
48
|
const timer = setTimeout(() => {
|