This commit is contained in:
Ibrahima G. Coulibaly
2024-06-28 16:39:02 +01:00
parent 12c815a1ff
commit f88536ebe3
2 changed files with 11 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
import { defineConfig, devices } from '@playwright/test';
const baseUrl = process.env.BASE_URL || 'http://localhost:5050';
const isCI = !!process.env.CI;
export default defineConfig({
testDir: './src',
@@ -8,7 +8,7 @@ export default defineConfig({
fullyParallel: true,
retries: 1,
use: {
baseURL: 'http://localhost:5173',
baseURL: isCI ? 'http://localhost:4173' : 'http://localhost:5173',
trace: 'on-first-retry'
},
webServer: {