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.
- package/package.json +1 -1
- package/run.js +2 -2
package/package.json
CHANGED
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
|
};
|