Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(ff): await for configuration promises

Pavel1c3ff0bd5295
diff --git a/src/firefox/Browser.ts b/src/firefox/Browser.ts
index 0652eb797f..42d6af0974 100644
--- a/src/firefox/Browser.ts
+++ b/src/firefox/Browser.ts
@@ -202,7 +202,7 @@ export class Browser extends EventEmitter implements BrowserInterface {
promises.push(session.send('Page.setUserAgent', { userAgent: options.userAgent }));
if (options.mediaType || options.colorScheme)
promises.push(session.send('Page.setEmulatedMedia', { type: options.mediaType, colorScheme: options.colorScheme }));
- Promise.all(promises);
+ await Promise.all(promises);
return page;
},