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: ipv6 proxy address (#9457)
Yury Semikhatskyfc54f1937af9
diff --git a/tests/browsercontext-proxy.spec.ts b/tests/browsercontext-proxy.spec.tsindex 142c1d33fa..879821475a 100644--- a/tests/browsercontext-proxy.spec.ts+++ b/tests/browsercontext-proxy.spec.ts@@ -86,6 +86,19 @@ it('should use proxy', async ({ contextFactory, server, proxyServer }) => {await context.close();});+it('should use ipv6 proxy', async ({ contextFactory, server, proxyServer, browserName }) => {+ it.fail(browserName === 'firefox', 'page.goto: NS_ERROR_UNKNOWN_HOST');+ proxyServer.forwardTo(server.PORT);+ const context = await contextFactory({+ proxy: { server: `[0:0:0:0:0:0:0:1]:${proxyServer.PORT}` }+ });+ const page = await context.newPage();+ await page.goto('http://non-existent.com/target.html');+ expect(proxyServer.requestUrls).toContain('http://non-existent.com/target.html');+ expect(await page.title()).toBe('Served by the proxy');+ await context.close();+});+it('should use proxy twice', async ({ contextFactory, server, proxyServer }) => {proxyServer.forwardTo(server.PORT);const context = await contextFactory({