diff --git a/ui/playwright.config.ts b/ui/playwright.config.ts index abaf3b117c..4bcc8f5620 100644 --- a/ui/playwright.config.ts +++ b/ui/playwright.config.ts @@ -12,9 +12,6 @@ export default defineConfig({ retries: isLocal ? 0 : 2, workers: isLocal ? undefined : 1, reporter: "html", - globalSetup: isLocal - ? undefined - : require.resolve("./tests/e2e/global-setup"), use: { baseURL: "http://localhost:3000", trace: "on-first-retry", diff --git a/ui/tests/e2e/global-setup.ts b/ui/tests/e2e/global-setup.ts deleted file mode 100644 index 6a1c576741..0000000000 --- a/ui/tests/e2e/global-setup.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { FullConfig } from '@playwright/test'; -import { execSync } from 'child_process'; - -async function globalSetup(config: FullConfig) { - // Start Docker containers (for CI or non-local runs) - console.log('Starting Docker containers...'); - execSync( - 'docker compose -f ../docker-compose-dev.yml up -d --build api-dev postgres valkey worker-beat worker-dev', - { stdio: 'inherit' } - ); - - // Wait for services to be ready - console.log('Waiting for services to be ready...'); - await new Promise((resolve) => setTimeout(resolve, 30000)); // Wait 30 seconds - - // Register cleanup function - process.on('exit', () => { - console.log('Cleaning up containers...'); - execSync('docker compose -f ../docker-compose-dev.yml down', { stdio: 'inherit' }); - }); -} - -export default globalSetup;