fix(remote): make playwright server work with firefox-beta (#12039)

It is not considered "channel", but rather a "tool".
This commit is contained in:
Dmitry Gozman 2022-02-11 14:02:02 -08:00 committed by GitHub
parent 94fc45a3db
commit ccb09acdba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ class Connection {
const playwright = createPlaywright('javascript');
const socksProxy = await this._enableSocksProxyIfNeeded(playwright);
const browser = await playwright[executable.browserName].launch(internalCallMetadata(), {
channel: executable.type === 'channel' ? executable.name : undefined,
channel: executable.type === 'browser' ? undefined : executable.name,
});
// Close the browser on disconnect.