From 42cd6d04d640e68d56bdb878f779479f5f83edc1 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Thu, 15 Sep 2022 10:53:01 +0200 Subject: [PATCH] chore: rerun tasks after the util handle has been evaluated (#8962) --- src/common/IsolatedWorld.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/IsolatedWorld.ts b/src/common/IsolatedWorld.ts index 9a7de4bbc15..38a40843bcd 100644 --- a/src/common/IsolatedWorld.ts +++ b/src/common/IsolatedWorld.ts @@ -159,7 +159,6 @@ export class IsolatedWorld { this.#injectPuppeteerUtil(context); this.#ctxBindings.clear(); this.#context.resolve(context); - this.#taskManager.rerunAll(); } async #injectPuppeteerUtil(context: ExecutionContext): Promise { @@ -173,6 +172,7 @@ export class IsolatedWorld { })()` )) as JSHandle ); + this.#taskManager.rerunAll(); } catch (error: unknown) { debugError(error); }