Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(HEAD): revert GET->HEAD migration, net-effect was negative (#29738)
Pavel Feldmand9a00342c84b
diff --git a/packages/playwright-core/src/utils/network.ts b/packages/playwright-core/src/utils/network.tsindex bf834abaa0..8cacb8aeb6 100644--- a/packages/playwright-core/src/utils/network.ts+++ b/packages/playwright-core/src/utils/network.ts@@ -181,9 +181,8 @@ export async function isURLAvailable(url: URL, ignoreHTTPSErrors: boolean, onLogasync function httpStatusCode(url: URL, ignoreHTTPSErrors: boolean, onLog?: (data: string) => void, onStdErr?: (data: string) => void): Promise<number> {return new Promise(resolve => {- onLog?.(`HTTP HEAD: ${url}`);+ onLog?.(`HTTP GET: ${url}`);httpRequest({- method: 'HEAD',url: url.toString(),headers: { Accept: '*/*' },rejectUnauthorized: !ignoreHTTPSErrorsdiff --git a/tests/playwright-test/web-server.spec.ts b/tests/playwright-test/web-server.spec.tsindex d2eacb2d55..04e3c1d328 100644--- a/tests/playwright-test/web-server.spec.ts+++ b/tests/playwright-test/web-server.spec.ts@@ -662,7 +662,7 @@ test('should check ipv4 and ipv6 with happy eyeballs when URL is passed', asyncexpect(result.exitCode).toBe(0);expect(result.passed).toBe(1);expect(result.output).toContain('Process started');- expect(result.output).toContain(`HTTP HEAD: http://localhost:${port}/`);+ expect(result.output).toContain(`HTTP GET: http://localhost:${port}/`);expect(result.output).toContain('WebServer available');});