From 0d884aca6b01adcbeac90bb6ab37048bd5fbc684 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 6 Aug 2026 10:18:56 +0200 Subject: [PATCH] Use preinstalled chrome for tests in CI --- .github/workflows/ci.yml | 1 - vite.config.ts | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92e66eb4..45fa4aa1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,4 +13,3 @@ jobs: with: node-version: 26.x publish-coverage: true - install-playwright: true diff --git a/vite.config.ts b/vite.config.ts index aaf34086..d4dbb9d4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -41,7 +41,10 @@ export default defineConfig({ test: { // Run tests in an actual browser browser: { - provider: playwright(), + provider: playwright({ + // In CI, this instructs playwright to use a pre-existing Chrome instance + launchOptions: process.env.CI ? { channel: 'chrome' } : undefined, + }), enabled: true, headless: true, screenshotFailures: false,