diff --git a/playwright.config.ts b/playwright.config.ts index 655841e..b07ae00 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,8 +1,7 @@ import { defineConfig, devices } from '@playwright/test'; -const baseURL = process.env.BASE_URL || 'http://127.0.0.1:3000'; -const webServerURL = process.env.WEB_SERVER_URL || baseURL; -const chromeDebuggingPort = process.env.CHROME_DEBUGGING_PORT || '9222'; +const baseURL = process.env.FRONTEND_URL || 'http://frontend:3000'; +const backendURL = process.env.BACKEND_URL || 'http://backend:8000'; export default defineConfig({ testDir: './tests', @@ -14,22 +13,16 @@ export default defineConfig({ use: { baseURL, trace: 'on-first-retry', - launchOptions: { - args: [`--remote-debugging-port=${chromeDebuggingPort}`], - }, }, projects: [ { name: 'chromium', - use: { - ...devices['Desktop Chrome'], - channel: 'chrome', - }, + use: { ...devices['Desktop Chrome'] }, }, ], webServer: { command: 'npm run dev', - url: webServerURL, + url: baseURL, reuseExistingServer: !process.env.CI, }, });