testaro 59.2.3 → 59.2.4

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/run.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "59.2.3",
3
+ "version": "59.2.4",
4
4
  "description": "Run 1000 web accessibility tests from 11 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/run.js CHANGED
@@ -215,11 +215,10 @@ const goTo = async (report, page, url, timeout, waitUntil) => {
215
215
  // Closes the current browser.
216
216
  const browserClose = async () => {
217
217
  if (browser) {
218
+ browserCloseIntentional = true;
218
219
  for (const context of browser.contexts()) {
219
220
  try {
220
- browserCloseIntentional = true;
221
221
  await context.close();
222
- browserCloseIntentional = false;
223
222
  }
224
223
  catch(error) {
225
224
  console.log(
@@ -228,6 +227,7 @@ const browserClose = async () => {
228
227
  }
229
228
  }
230
229
  await browser.close();
230
+ browserCloseIntentional = false;
231
231
  browser = null;
232
232
  }
233
233
  };