test: update expectation for secure cookie test on WK Win (#36361)

This commit is contained in:
Yury Semikhatsky 2025-06-19 11:06:48 -07:00 committed by GitHub
parent 66e9030212
commit 5f65f32d26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,7 @@ it('should use proxy', async ({ contextFactory, server, proxyServer }) => {
await context.close(); 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); proxyServer.forwardTo(server.PORT);
const context = await contextFactory({ const context = await contextFactory({
proxy: { server: `localhost:${proxyServer.PORT}` }, proxy: { server: `localhost:${proxyServer.PORT}` },
@ -88,7 +88,7 @@ it('should send secure cookies to subdomain.localhost', async ({ contextFactory,
name: 'non-secure', name: 'non-secure',
domain: 'subdomain.localhost', domain: 'subdomain.localhost',
}, },
...(browserName === 'webkit' ? [] : [{ ...((browserName === 'webkit') && !isWindows ? [] : [{
name: 'secure', name: 'secure',
domain: 'subdomain.localhost', domain: 'subdomain.localhost',
}]), }]),