testaro 64.0.0 → 64.1.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 +4 -2
- package/package.json +1 -1
- package/tests/ibm.js +3 -5
package/README.md
CHANGED
|
@@ -490,7 +490,7 @@ These changes were proposed as [pull requests 1333 and 1334](https://github.com/
|
|
|
490
490
|
|
|
491
491
|
The `ibm` tool is one of two tools (`testaro` is the other) with a `withItems` property. If you set `withItems` to `false`, the result includes the counts of “violations” and “recommendations”, but no information about the rules that gave rise to them.
|
|
492
492
|
|
|
493
|
-
|
|
493
|
+
In a previous version of the package, the tool operated on the page content when the `withNewContent` property was `false`. In some cases the tool threw untrappable errors for some targets under that condition. The tool launched a Puppeteer browser to create pages to perform its tests on. On any host that did not permit sandboxed browsers to be launched, the `aceconfig.js` file needed to specify nonsandboxed browsers. Starting in December 2025, the tool operates on the page rather than the page content.
|
|
494
494
|
|
|
495
495
|
#### Nu Html Checker
|
|
496
496
|
|
|
@@ -521,7 +521,9 @@ When no string pertains to a module, then QualWeb will test for all of the rules
|
|
|
521
521
|
|
|
522
522
|
Thus, when the `rules` argument is omitted, QualWeb will test for all of the rules in all of these modules.
|
|
523
523
|
|
|
524
|
-
The target can be provided to QualWeb either as
|
|
524
|
+
The target can be provided to QualWeb either as HTML or as a URL. Experience indicates that the results can differ between these methods, with each method reporting some rule violations or some instances that the other method does not report. For at least some cases, more rules are reported violated when HTML is provided (`withNewItems: false`).
|
|
525
|
+
|
|
526
|
+
QualWeb creates sandboxed Puppeteer pages to perform its tests on. Therefore, the host must permit sandboxed browsers to be launched. See the pertinent [Kilotest documentation](https://github.com/jrpool/kilotest/blob/main/SERVICE.md#browser-privileges) for information about the configuration of an Ubuntu Linux host for this purpose.
|
|
525
527
|
|
|
526
528
|
#### Testaro
|
|
527
529
|
|
package/package.json
CHANGED
package/tests/ibm.js
CHANGED
|
@@ -10,11 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
/*
|
|
12
12
|
ibm
|
|
13
|
-
This
|
|
14
|
-
The 'withNewContent' argument determines whether the test package should be
|
|
15
|
-
given the URL of the page to be tested (true) or the page content (false).
|
|
13
|
+
This tool implements the IBM Equal Access ruleset for accessibility. The 'withNewContent' argument determines whether the test package is given the URL of the page to be tested (true) or the page (false).
|
|
16
14
|
|
|
17
|
-
This
|
|
15
|
+
This tool depends on aceconfig.js.
|
|
18
16
|
|
|
19
17
|
This tool is compatible with Windows only if the accessibility-checker package
|
|
20
18
|
is revised. See README.md for details.
|
|
@@ -124,7 +122,7 @@ exports.reporter = async (page, report, actIndex) => {
|
|
|
124
122
|
const {withItems, withNewContent, rules} = act;
|
|
125
123
|
const contentType = withNewContent ? 'new' : 'existing';
|
|
126
124
|
try {
|
|
127
|
-
const typeContent = contentType === 'existing' ?
|
|
125
|
+
const typeContent = contentType === 'existing' ? page : page.url();
|
|
128
126
|
// Conduct the tests.
|
|
129
127
|
const runReport = await run(typeContent);
|
|
130
128
|
const {report} = runReport;
|