test: unflake 'should have ignoreHTTPSErrors=false by default' (#31771)

This commit is contained in:
Max Schmitt 2024-07-19 12:04:12 +02:00 committed by GitHub
parent d007ff3b62
commit 0ecae56750
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
});