testaro 8.4.6 → 8.4.7
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 +45 -39
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -362,9 +362,53 @@ An example of a **Testaro-defined** test is:
|
|
|
362
362
|
|
|
363
363
|
In this case, Testaro runs the `motion` test with the specified parameters.
|
|
364
364
|
|
|
365
|
+
###### Continuum
|
|
366
|
+
|
|
367
|
+
The `continuum` packaged test makes use of the files in the `continuum` directory. The test inserts the contents of all three files into the page as scripts and then uses them to perform the tests of the Continuum package.
|
|
368
|
+
|
|
369
|
+
Level Access on 22 August 2022 granted authorization for the copying of the `AccessEngine.community.js` file insofar as necessary for allowing Continuum community edition tests to be included in Testaro.
|
|
370
|
+
|
|
371
|
+
###### IBM Equal Access
|
|
372
|
+
|
|
373
|
+
The `ibm` packaged test requires the `aceconfig.js` file.
|
|
374
|
+
|
|
375
|
+
If you choose to invoke this packaged test with the `withNewContent` property specified, you will choose whether the tested content is the content of the existing page or is retrieved anew with the document URL. Typically, both methods succeed and deliver similar results. However, sometimes one method succeeds and the other fails, or one method reports more violations than the other does. In those cases, most often the success, or the larger violation count, arises from the existing page (`withNewContent: false`).
|
|
376
|
+
|
|
377
|
+
###### HTML CodeSniffer
|
|
378
|
+
|
|
379
|
+
The `htmlcs` packaged test makes use of the`htmlcs/HTMLCS.js` file. That file was created, and can be recreated if necessary, as follows:
|
|
380
|
+
|
|
381
|
+
1. Clone the (HTML CodeSniffer package)[https://github.com/squizlabs/HTML_CodeSniffer].
|
|
382
|
+
1. Make that package’s directory the active directory.
|
|
383
|
+
1. Install the HTML CodeSniffer dependencies by executing `npm install`.
|
|
384
|
+
1. Build the HTML CodeSniffer auditor by executing `grunt build`.
|
|
385
|
+
1. Copy the `build/HTMLCS.js` and `build/licence.txt` files into the `htmlcs` directory of Testaro.
|
|
386
|
+
1. Edit the Testaro copy of `htmlcs/HTMLCS.js` to produce the changes shown below.
|
|
387
|
+
|
|
388
|
+
The changes in `htmlcs/HTMLCS.js` are:
|
|
389
|
+
|
|
390
|
+
```diff
|
|
391
|
+
479a480
|
|
392
|
+
> '4_1_2_attribute': 'attribute',
|
|
393
|
+
6482a6484
|
|
394
|
+
> var messageStrings = new Set();
|
|
395
|
+
6496d6497
|
|
396
|
+
< console.log('done');
|
|
397
|
+
6499d6499
|
|
398
|
+
< console.log('done');
|
|
399
|
+
6500a6501
|
|
400
|
+
> return Array.from(messageStrings);
|
|
401
|
+
6531c6532,6534
|
|
402
|
+
< console.log('[HTMLCS] ' + typeName + '|' + msg.code + '|' + nodeName + '|' + elementId + '|' + msg.msg + '|' + html);
|
|
403
|
+
---
|
|
404
|
+
> messageStrings.add(
|
|
405
|
+
> typeName + '|' + msg.code + '|' + nodeName + '|' + elementId + '|' + msg.msg + '|' + html
|
|
406
|
+
> );
|
|
407
|
+
```
|
|
408
|
+
|
|
365
409
|
###### Tenon
|
|
366
410
|
|
|
367
|
-
Most packaged tests require only one command, but the `tenon` test requires two commands:
|
|
411
|
+
Most packaged tests require only one command, but the `tenon` packaged test requires two commands:
|
|
368
412
|
- A command of type `tenonRequest`.
|
|
369
413
|
- A command of type `test` with `tenon` as the value of `which`.
|
|
370
414
|
|
|
@@ -404,44 +448,6 @@ Tenon recommends giving it a public URL rather than giving it the content of a p
|
|
|
404
448
|
|
|
405
449
|
If a `tenon` test is included in a job, environment variables named `TENON_USER` and `TENON_PASSWORD` must exist, with your Tenon username and password, respectively, as their values. You can obtain those from [Tenon](https://tenon.io/documentation/overview).
|
|
406
450
|
|
|
407
|
-
###### Continuum
|
|
408
|
-
|
|
409
|
-
The `continuum` test makes use of the files in the `continuum` directory. The test inserts the contents of all three files into the page as scripts and then uses them to perform the tests of the Continuum package.
|
|
410
|
-
|
|
411
|
-
Level Access on 22 August 2022 granted authorization for the copying of the `AccessEngine.community.js` file insofar as necessary for allowing Continuum community edition tests to be included in Testaro.
|
|
412
|
-
|
|
413
|
-
###### HTML CodeSniffer
|
|
414
|
-
|
|
415
|
-
The `htmlcs` test makes use of the`htmlcs/HTMLCS.js` file. That file was created, and can be recreated if necessary, as follows:
|
|
416
|
-
|
|
417
|
-
1. Clone the (HTML CodeSniffer package)[https://github.com/squizlabs/HTML_CodeSniffer].
|
|
418
|
-
1. Make that package’s directory the active directory.
|
|
419
|
-
1. Install the HTML CodeSniffer dependencies by executing `npm install`.
|
|
420
|
-
1. Build the HTML CodeSniffer auditor by executing `grunt build`.
|
|
421
|
-
1. Copy the `build/HTMLCS.js` and `build/licence.txt` files into the `htmlcs` directory of Testaro.
|
|
422
|
-
1. Edit the Testaro copy of `htmlcs/HTMLCS.js` to produce the changes shown below.
|
|
423
|
-
|
|
424
|
-
The changes in `htmlcs/HTMLCS.js` are:
|
|
425
|
-
|
|
426
|
-
```diff
|
|
427
|
-
479a480
|
|
428
|
-
> '4_1_2_attribute': 'attribute',
|
|
429
|
-
6482a6484
|
|
430
|
-
> var messageStrings = new Set();
|
|
431
|
-
6496d6497
|
|
432
|
-
< console.log('done');
|
|
433
|
-
6499d6499
|
|
434
|
-
< console.log('done');
|
|
435
|
-
6500a6501
|
|
436
|
-
> return Array.from(messageStrings);
|
|
437
|
-
6531c6532,6534
|
|
438
|
-
< console.log('[HTMLCS] ' + typeName + '|' + msg.code + '|' + nodeName + '|' + elementId + '|' + msg.msg + '|' + html);
|
|
439
|
-
---
|
|
440
|
-
> messageStrings.add(
|
|
441
|
-
> typeName + '|' + msg.code + '|' + nodeName + '|' + elementId + '|' + msg.msg + '|' + html
|
|
442
|
-
> );
|
|
443
|
-
```
|
|
444
|
-
|
|
445
451
|
###### WAVE
|
|
446
452
|
|
|
447
453
|
If a `wave` test is included in the job, an environment variable named `WAVE_KEY` must exist, with your WAVE API key as its value. You can get it from [WebAIM](https://wave.webaim.org/api/).
|