Update files

This commit is contained in:
Mohamed Boudra
2026-01-23 15:10:36 +07:00
parent a6869d55c1
commit 0852f4e6d0
7 changed files with 79 additions and 12 deletions
+4 -1
View File
@@ -1,6 +1,8 @@
import { defineConfig, devices } from '@playwright/test';
const baseURL = process.env.E2E_BASE_URL ?? 'http://localhost:8081';
// E2E_METRO_PORT is set dynamically by global-setup.ts after finding a free port
// This allows multiple test runs in parallel across different worktrees
const baseURL = process.env.E2E_BASE_URL ?? `http://localhost:${process.env.E2E_METRO_PORT ?? '8081'}`;
export default defineConfig({
testDir: './e2e',
@@ -24,4 +26,5 @@ export default defineConfig({
use: { ...devices['Desktop Chrome'] },
},
],
// Note: Metro is started by global-setup.ts on a dynamic port to allow parallel test runs
});