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 */
|
/* 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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user