mirror of
https://github.com/cloud-shuttle/leptos-shadcn-ui.git
synced 2025-12-22 22:00:00 +00:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user