testaro 78.0.0 → 78.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "78.0.0",
3
+ "version": "78.0.2",
4
4
  "description": "Run 1300 web accessibility tests from 10 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/procs/launch.js CHANGED
@@ -83,9 +83,11 @@ const deSlash = url => (url || '').replace(/\/+$/, '');
83
83
  // Close a browser context and/or its browser, if they exist.
84
84
  const browserClose = exports.browserClose = async page => {
85
85
  if (page) {
86
- const browserContext = page.context;
86
+ // Get the context (i.e. window) of the page and the browser of the context. These are methods, not properties; referencing them as properties made this function silently fail to close anything, because a function object has no close method and the resulting TypeError was caught and discarded.
87
+ const browserContext = page.context();
87
88
  if (browserContext) {
88
- const {browser} = browserContext;
89
+ // The browser is null for a context not owned by a browser, such as a persistent context.
90
+ const browser = browserContext.browser();
89
91
  try {
90
92
  await browserContext.close();
91
93
  }
package/tests/testaro.js CHANGED
@@ -324,7 +324,10 @@ const allRules = [
324
324
  what: 'motion without user request',
325
325
  contaminates: false,
326
326
  needsAccessibleName: false,
327
- timeOut: 5,
327
+ // The budget must cover a full-page screenshot (itself allowed 4 seconds in
328
+ // procs/shoot.js), decoding two full-page PNGs, and a pixel comparison; 5
329
+ // seconds made the rule time out whenever an initial image existed.
330
+ timeOut: 30,
328
331
  defaultOn: true
329
332
  },
330
333
  {