testaro 77.0.1 → 77.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/procs/launch.js +10 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "77.0.1",
3
+ "version": "77.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
@@ -18,14 +18,6 @@
18
18
 
19
19
  const {addError} = require('./error');
20
20
  const headedBrowser = process.env.HEADED_BROWSER === 'true';
21
- // Whether to launch Chromium without its sandbox. The sandbox requires
22
- // unprivileged user-namespace cloning, which the default container seccomp
23
- // policies and some hardened hosts prohibit. Setting
24
- // TESTARO_CHROMIUM_NO_SANDBOX=true permits Chromium to run in such
25
- // environments; the alternative is to run the container with a seccomp
26
- // profile that permits user-namespace cloning. Applies only to Chromium;
27
- // WebKit and Firefox have no equivalent option.
28
- const chromiumNoSandbox = process.env.TESTARO_CHROMIUM_NO_SANDBOX === 'true';
29
21
  // Two flavors of Playwright:
30
22
  // - `playwrightCore`: the upstream Playwright SDK with no plugins attached.
31
23
  // - `playwrightExtra`: the playwright-extra wrapper. `run.js` registers
@@ -66,6 +58,14 @@ const errorWords = [
66
58
  // Seconds to wait between actions.
67
59
  const waits = Number(process.env.WAITS) ?? 0;
68
60
  const abortAssertively = process.env.ABORT_ASSERTIVELY === 'true';
61
+ // Whether to launch Chromium without its sandbox. The sandbox requires
62
+ // unprivileged user-namespace cloning, which the default container seccomp
63
+ // policies and some hardened hosts prohibit. Setting
64
+ // TESTARO_CHROMIUM_NO_SANDBOX=true permits Chromium to run in such
65
+ // environments; the alternative is to run the container with a seccomp
66
+ // profile that permits user-namespace cloning. Applies only to Chromium;
67
+ // WebKit and Firefox have no equivalent option.
68
+ const chromiumNoSandbox = process.env.TESTARO_CHROMIUM_NO_SANDBOX === 'true';
69
69
 
70
70
  // FUNCTIONS
71
71
 
@@ -77,6 +77,8 @@ const wait = exports.wait = ms => {
77
77
  }, ms);
78
78
  });
79
79
  };
80
+ // Removes any trailing slashes from a URL, for redirection comparison.
81
+ const deSlash = url => (url || '').replace(/\/+$/, '');
80
82
  // Close a browser context and/or its browser, if they exist.
81
83
  const browserClose = exports.browserClose = async page => {
82
84
  if (page) {