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
test(proxy): use a hostname exempt from https upgrades in the proxy auth test (#43530)
Yury Semikhatskyf4a45bdb0fd8
diff --git a/tests/library/proxy.spec.ts b/tests/library/proxy.spec.tsindex c36ac205f1..047b79b378 100644--- a/tests/library/proxy.spec.ts+++ b/tests/library/proxy.spec.ts@@ -171,7 +171,7 @@ it('PR-007 should authenticate', {await page.goto('http://non-existent.test/target.html');expect(await page.title()).toBe('Basic ' + Buffer.from('user:secret').toString('base64'));// Proxy credentials must not be sent to the website's own auth challenge.- const responseOrError = await page.goto('http://non-existent.com/protected.html').catch(e => e);+ const responseOrError = await page.goto('http://non-existent.test/protected.html').catch(e => e);if (browserName === 'chromium' && !isHeadlessShell) {// Branded Chromium shows a login dialog for the 401 and fails the navigation.expect(responseOrError.message).toContain('net::ERR_INVALID_AUTH_CREDENTIALS');