From 0ecae5675027db026b5d9845a6c8bface09fe604 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 19 Jul 2024 12:04:12 +0200 Subject: [PATCH] test: unflake 'should have ignoreHTTPSErrors=false by default' (#31771) --- tests/library/client-certificates.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/library/client-certificates.spec.ts b/tests/library/client-certificates.spec.ts index 6cee291f0b..11fd6712cd 100644 --- a/tests/library/client-certificates.spec.ts +++ b/tests/library/client-certificates.spec.ts @@ -249,7 +249,7 @@ test.describe('browser', () => { await page.close(); }); - test('should have ignoreHTTPSErrors=false by default', async ({ browser, httpsServer, asset }) => { + test('should have ignoreHTTPSErrors=false by default', async ({ browser, httpsServer, asset, browserName, platform }) => { const page = await browser.newPage({ clientCertificates: [{ url: 'https://just-there-that-the-client-certificates-proxy-server-is-getting-launched.com', @@ -259,7 +259,7 @@ test.describe('browser', () => { }], }], }); - await page.goto(httpsServer.EMPTY_PAGE); + await page.goto(browserName === 'webkit' && platform === 'darwin' ? httpsServer.EMPTY_PAGE.replace('localhost', 'local.playwright') : httpsServer.EMPTY_PAGE); await expect(page.getByText('Playwright client-certificate error')).toBeVisible(); await page.close(); });