From 0252e985883ab03a13fbb121bae01a3af0e17d95 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Mon, 29 Aug 2022 13:27:55 +0200 Subject: [PATCH] fix: forward timeout waitForFileChooser --- src/common/Page.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/Page.ts b/src/common/Page.ts index f7e8a769efb41..9cafd838c5fc0 100644 --- a/src/common/Page.ts +++ b/src/common/Page.ts @@ -770,7 +770,8 @@ export class Page extends EventEmitter { const {timeout = this.#timeoutSettings.timeout()} = options; const promise = createDeferredPromiseWithTimer( - `Waiting for \`FileChooser\` failed: ${timeout}ms exceeded` + `Waiting for \`FileChooser\` failed: ${timeout}ms exceeded`, + timeout ); this.#fileChooserPromises.add(promise); return promise.catch(error => {