Skip to content

Commit

Permalink
fix: forward timeout waitForFileChooser
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Aug 29, 2022
1 parent e2d9858 commit 0252e98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/Page.ts
Expand Up @@ -770,7 +770,8 @@ export class Page extends EventEmitter {

const {timeout = this.#timeoutSettings.timeout()} = options;
const promise = createDeferredPromiseWithTimer<FileChooser>(
`Waiting for \`FileChooser\` failed: ${timeout}ms exceeded`
`Waiting for \`FileChooser\` failed: ${timeout}ms exceeded`,
timeout
);
this.#fileChooserPromises.add(promise);
return promise.catch(error => {
Expand Down

0 comments on commit 0252e98

Please sign in to comment.