Skip to content

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

fix: installation tests on Node.js 18 (#13744)

Ross Wollman3ccac5b84d42
diff --git a/tests/installation/registry.ts b/tests/installation/registry.ts
index 363f671171..7fa56cd27e 100644
--- a/tests/installation/registry.ts
+++ b/tests/installation/registry.ts
@@ -107,7 +107,7 @@ export class Registry {
}
});
- this._server.listen(Number.parseInt(new URL(this._url).port, 10), 'localhost');
+ this._server.listen(Number.parseInt(new URL(this._url).port, 10), '127.0.0.1');
await new Promise<void>((res, rej) => {
this._server.on('listening', () => res());
this._server.on('error', rej);