diff --git a/tests/library/browsertype-connect.spec.ts b/tests/library/browsertype-connect.spec.ts index c819747a69..1ce9357636 100644 --- a/tests/library/browsertype-connect.spec.ts +++ b/tests/library/browsertype-connect.spec.ts @@ -642,4 +642,6 @@ test('should connect when launching', async ({ browserType, startRemoteServer, h new Promise(f => browser.on('disconnected', f)), remoteServer.close(), ]); + + (browserType as any)._defaultConnectOptions = undefined; });