testaro 16.3.0 → 16.4.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 CHANGED
@@ -60,6 +60,20 @@ Level Access has acquired Tenon and has announced that it will retire Tenon in A
60
60
 
61
61
  Each tool accessed with Testaro defines _rules_ and tests _targets_ for compliance with its rules. The counts of the rules range from about 30, for Testaro itself, to about 270, for Continuum Community Edition. In total, the ten tools define about 1350 rules. Some of the tools are under active development, and their rule counts change over time.
62
62
 
63
+ When you ask Testaro to run tests of a tool, you may specify a subset of the rules of that tool, and the report will give you the results of only the tests for those rules. These tools will perform only those tests:
64
+ - alfa
65
+ - axe
66
+ - continuum
67
+ - htmlcs
68
+ - qualWeb
69
+ - testaro
70
+
71
+ These tools always perform a fixed set of tests, and Testaro disregards irrelevant results when you specify a set of rules:
72
+ - ibm
73
+ - nuVal
74
+ - tenon
75
+ - wave
76
+
63
77
  ## Job data
64
78
 
65
79
  A report produced by Testaro discloses:
@@ -470,7 +484,7 @@ When a `test` act has an `expect` property, the result for that act has an `expe
470
484
 
471
485
  ###### Continuum
472
486
 
473
- The `continuum` tests makes use of the files in the `continuum` directory. The tool inserts the contents of all three files into the page as scripts and then uses them to perform the tests.
487
+ The `continuum` tool makes use of the files in the `continuum` directory. The tool inserts the contents of all three files into the page as scripts and then uses them to perform the tests.
474
488
 
475
489
  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.
476
490
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "16.3.0",
3
+ "version": "16.4.0",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/testaro/focOp.js CHANGED
@@ -2,11 +2,11 @@
2
2
  focOp
3
3
  Related to Tenon rule 190.
4
4
 
5
- WARNING: The chromium and firefox browsers in Playwright make errors on this test by
6
- misclassifying the cursor property values of the computed styles of elements. Launch the
7
- webkit browser to run this test.
5
+ WARNING: The chromium and firefox browsers in Playwright fail to accept are stricter on this test than the
6
+ chromium browser is.
7
+ misclassifying the tabIndex values of elements. Launch the webkit browser to run this test.
8
8
 
9
- This test reports descrepancies between Tab-focusability and operability. The standard
9
+ This test reports discrepancies between Tab-focusability and operability. The standard
10
10
  practice is to make focusable elements operable and vice versa. If focusable elements are not
11
11
  operable, users are likely to be surprised that nothing happens when they try to operate such
12
12
  elements. If operable elements are not focusable, users depending on keyboard navigation are
@@ -72,11 +72,19 @@ exports.reporter = async (page, withItems) => {
72
72
  for (const loc of locsAll) {
73
73
  // Get data on it.
74
74
  const focOpData = await loc.evaluate(element => {
75
+ // Tab index.
75
76
  const {tabIndex} = element;
77
+ // Cursor.
76
78
  let hasPointer = false;
77
79
  if (element.tagName !== 'LABEL') {
78
80
  const styleDec = window.getComputedStyle(element);
79
81
  hasPointer = styleDec.cursor === 'pointer';
82
+ // If the cursor is a pointer:
83
+ if (hasPointer) {
84
+ // Disregard this if the only reason is inheritance.
85
+ element.parentElement.style.cursor = 'default';
86
+ hasPointer = styleDec.cursor === 'pointer';
87
+ }
80
88
  }
81
89
  const {tagName} = element;
82
90
  return {
package/tests/ibm.js CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  This test depends on aceconfig.js.
8
8
 
9
- This test is compatible with Windows only if the accessibility-checker package
9
+ This tool is compatible with Windows only if the accessibility-checker package
10
10
  is revised. See README.md for details.
11
11
  */
12
12
  // Import required modules.