From 28b5aeae6dc74064604ca86e526d48e883c31a8b Mon Sep 17 00:00:00 2001 From: Morgan Ney Date: Mon, 15 Jan 2024 19:30:53 -0600 Subject: [PATCH] test: ignore cert invalid. --- tests/basic.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/basic.spec.ts b/tests/basic.spec.ts index dea9bf1..7968d5b 100644 --- a/tests/basic.spec.ts +++ b/tests/basic.spec.ts @@ -1,6 +1,9 @@ import { test, expect } from '@playwright/test' -test('has title', async ({ page }) => { +test('has title', async ({ browser }) => { + const ctx = await browser.newContext({ ignoreHTTPSErrors: true }) + const page = await ctx.newPage() + await page.goto('/') await expect(page).toHaveTitle(/Busmap/) })