testaro 4.11.0 → 4.11.1

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/commands.js CHANGED
@@ -153,7 +153,7 @@ exports.commands = {
153
153
  axe: [
154
154
  'Perform an Axe test',
155
155
  {
156
- detailLevel: [true, 'number', '', 'count to include of: violations, incomplete, passes, inapplicable'],
156
+ detailLevel: [true, 'number', '', '0 = least, 4 = most'],
157
157
  rules: [true, 'array', 'areStrings', 'rule names, or empty if all']
158
158
  }
159
159
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "4.11.0",
3
+ "version": "4.11.1",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tests/motion.js CHANGED
@@ -9,7 +9,8 @@
9
9
  between screen shots (interval), and how many screen shots to make (count). The test compares the
10
10
  screen shots and reports 9 statistics:
11
11
  0. bytes: an array of the sizes of the screen shots, in bytes
12
- 1. localRatios: an array of the ratios of bytes of the larger to the smaller of adjacent pairs of screen shots
12
+ 1. localRatios: an array of the ratios of bytes of the larger to the smaller of adjacent pairs
13
+ of screen shots
13
14
  2. meanLocalRatio: the mean of the ratios in the localRatios array
14
15
  3. maxLocalRatio: the greatest of the ratios in the localRatios array
15
16
  4. globalRatio: the ratio of bytes of the largest to the smallest screen shot
@@ -17,6 +18,10 @@
17
18
  6. meanPixelChange: the mean of the counts in the pixelChanges array
18
19
  7. maxPixelChange: the greatest of the counts in the pixelChanges array
19
20
  8. changeFrequency: what fraction of the adjacent pairs of screen shots has pixel differences
21
+
22
+ WARNING: This test uses the Playwright page.screenshot method, which produces incorrect results
23
+ when the browser type is chromium and is not implemented for the firefox browser type. The only
24
+ browser type usable with this test is webkit.
20
25
  */
21
26
  const pixelmatch = require('pixelmatch');
22
27
  const {PNG} = require('pngjs');