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
This commit is contained in:
Peter Hanssens
2025-09-23 21:15:32 +10:00
parent f33e05ba6e
commit 6c7cc45f25

View File

@@ -124,7 +124,7 @@ export default defineConfig({
/* Configure projects for major browsers */ /* Configure projects for major browsers */
projects: [ projects: [
// Desktop browsers // Desktop browsers - Only Chromium for faster CI
{ {
name: 'chromium', name: 'chromium',
use: { use: {
@@ -132,36 +132,37 @@ export default defineConfig({
...browserConfigs.chromium, ...browserConfigs.chromium,
}, },
}, },
{ // Disabled for faster CI - only Chromium installed
name: 'firefox', // {
use: { // name: 'firefox',
...devices['Desktop Firefox'], // use: {
...browserConfigs.firefox, // ...devices['Desktop Firefox'],
}, // ...browserConfigs.firefox,
}, // },
{ // },
name: 'webkit', // {
use: { // name: 'webkit',
...devices['Desktop Safari'], // use: {
...browserConfigs.webkit, // ...devices['Desktop Safari'],
}, // ...browserConfigs.webkit,
}, // },
// },
// Mobile browsers // Mobile browsers - Disabled for faster CI
{ // {
name: 'Mobile Chrome', // name: 'Mobile Chrome',
use: { // use: {
...devices['Pixel 5'], // ...devices['Pixel 5'],
...browserConfigs['Mobile Chrome'], // ...browserConfigs['Mobile Chrome'],
}, // },
}, // },
{ // {
name: 'Mobile Safari', // name: 'Mobile Safari',
use: { // use: {
...devices['iPhone 12'], // ...devices['iPhone 12'],
...browserConfigs['Mobile Safari'], // ...browserConfigs['Mobile Safari'],
}, // },
}, // },
// Test-specific projects // Test-specific projects
{ {