Skip to content

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

fix(tests): lookup localhost subdomains on Win and Mac (#36285)

Yury Semikhatskyd101492713e9
diff --git a/tests/library/global-fetch-cookie.spec.ts b/tests/library/global-fetch-cookie.spec.ts
index 848bf8ebce..f747a5cd3b 100644
--- a/tests/library/global-fetch-cookie.spec.ts
+++ b/tests/library/global-fetch-cookie.spec.ts
@@ -146,7 +146,7 @@ it('should send secure cookie over http for subdomains of localhost', async ({ r
res.end();
});
const prefix = `http://a.b.localhost:${server.PORT}`;
- await request.get(`${prefix}/setcookie.html`);
+ await request.get(`${prefix}/setcookie.html`, { __testHookLookup } as any);
const [serverRequest] = await Promise.all([
server.waitForRequest('/empty.html'),
request.get(`${prefix}/empty.html`)