Skip to content

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

test(bidi): Fix badSSL error for selfsigned certificates (#37366)

Henrik Skupinc698e3d07d7f
diff --git a/tests/config/utils.ts b/tests/config/utils.ts
index cda919a1d5..6fb3fc6a03 100644
--- a/tests/config/utils.ts
+++ b/tests/config/utils.ts
@@ -64,6 +64,8 @@ export function expectedSSLError(browserName: string, platform: string, channel:
else
return /Unacceptable TLS certificate|Operation was cancelled/;
}
+ if (browserName === '_bidiFirefox')
+ return /MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT/;
return /SSL_ERROR_UNKNOWN/;
}