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,