diff --git a/.idea/workspace.xml b/.idea/workspace.xml index aa7b0e0..bc488e1 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,7 +5,6 @@ - diff --git a/playwright.config.ts b/playwright.config.ts index 09561a3..f381d78 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -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: {