chore: rerun tasks after the util handle has been evaluated (#8962)

This commit is contained in:
Alex Rudenko 2022-09-15 10:53:01 +02:00 committed by GitHub
parent ac9929d80f
commit 42cd6d04d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<void> {
@ -173,6 +172,7 @@ export class IsolatedWorld {
})()`
)) as JSHandle<PuppeteerUtil>
);
this.#taskManager.rerunAll();
} catch (error: unknown) {
debugError(error);
}