From 6c7cc45f25daa59388481865a7ec9c4fda4392e2 Mon Sep 17 00:00:00 2001 From: Peter Hanssens Date: Tue, 23 Sep 2025 21:15:32 +1000 Subject: [PATCH] fix: Disable Firefox/WebKit/Mobile browsers in Playwright config - Only run tests on Chromium since we only installed Chromium browser - Disable Firefox, WebKit, Mobile Chrome, and Mobile Safari projects - This fixes the 'Executable doesn't exist' errors for missing browsers - Significantly reduces test execution time in CI --- playwright.config.ts | 61 ++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 200fd62..14ae9d6 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -124,7 +124,7 @@ export default defineConfig({ /* Configure projects for major browsers */ projects: [ - // Desktop browsers + // Desktop browsers - Only Chromium for faster CI { name: 'chromium', use: { @@ -132,36 +132,37 @@ export default defineConfig({ ...browserConfigs.chromium, }, }, - { - name: 'firefox', - use: { - ...devices['Desktop Firefox'], - ...browserConfigs.firefox, - }, - }, - { - name: 'webkit', - use: { - ...devices['Desktop Safari'], - ...browserConfigs.webkit, - }, - }, + // Disabled for faster CI - only Chromium installed + // { + // name: 'firefox', + // use: { + // ...devices['Desktop Firefox'], + // ...browserConfigs.firefox, + // }, + // }, + // { + // name: 'webkit', + // use: { + // ...devices['Desktop Safari'], + // ...browserConfigs.webkit, + // }, + // }, - // Mobile browsers - { - name: 'Mobile Chrome', - use: { - ...devices['Pixel 5'], - ...browserConfigs['Mobile Chrome'], - }, - }, - { - name: 'Mobile Safari', - use: { - ...devices['iPhone 12'], - ...browserConfigs['Mobile Safari'], - }, - }, + // Mobile browsers - Disabled for faster CI + // { + // name: 'Mobile Chrome', + // use: { + // ...devices['Pixel 5'], + // ...browserConfigs['Mobile Chrome'], + // }, + // }, + // { + // name: 'Mobile Safari', + // use: { + // ...devices['iPhone 12'], + // ...browserConfigs['Mobile Safari'], + // }, + // }, // Test-specific projects {