Self-signed certificates

By default Playwright validates TLS certificates like a real browser, so a target using a self-signed or internally-issued certificate makes every page.goto(...) fail with net::ERR_CERT_AUTHORITY_INVALID before the test logic even runs.

There is no plugin-level toggle for this — it is set explicitly in the transaction with Playwright's own test.use():

import { test, expect } from '@playwright/test';

test.use({ ignoreHTTPSErrors: true });

test('checkout flow', async ({ page }) => {
  await page.goto('https://internal.example.com');
  // ...
});

Revision #1
Created 2 August 2026 09:38:46 by Rafael Ameijeiras
Updated 2 August 2026 09:39:13 by Rafael Ameijeiras