diff --git a/tests/library/browsercontext-proxy.spec.ts b/tests/library/browsercontext-proxy.spec.ts index fcdae71823..7a68a3c318 100644 --- a/tests/library/browsercontext-proxy.spec.ts +++ b/tests/library/browsercontext-proxy.spec.ts @@ -64,7 +64,7 @@ it('should use proxy', async ({ contextFactory, server, proxyServer }) => { await context.close(); }); -it('should send secure cookies to subdomain.localhost', async ({ contextFactory, browserName, server, proxyServer }) => { +it('should send secure cookies to subdomain.localhost', async ({ contextFactory, browserName, server, isWindows, proxyServer }) => { proxyServer.forwardTo(server.PORT); const context = await contextFactory({ proxy: { server: `localhost:${proxyServer.PORT}` }, @@ -88,7 +88,7 @@ it('should send secure cookies to subdomain.localhost', async ({ contextFactory, name: 'non-secure', domain: 'subdomain.localhost', }, - ...(browserName === 'webkit' ? [] : [{ + ...((browserName === 'webkit') && !isWindows ? [] : [{ name: 'secure', domain: 'subdomain.localhost', }]),